Files
Sneedchat-Discord-Bridge-Go/.gitea/workflows/release.yml
Salastil f265393ed8
Some checks failed
Build Go Project / build (push) Failing after 7s
n/a
2025-11-16 13:53:01 -05:00

41 lines
1.1 KiB
YAML

name: Build & Release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.22"
- name: Build binaries
run: |
mkdir -p dist
GOOS=linux GOARCH=amd64 go build -o dist/sneedchat-bridge-linux-amd64 .
GOOS=linux GOARCH=arm64 go build -o dist/sneedchat-bridge-linux-arm64 .
GOOS=windows GOARCH=amd64 go build -o dist/sneedchat-bridge-windows-amd64.exe .
GOOS=darwin GOARCH=amd64 go build -o dist/sneedchat-bridge-macos-amd64 .
GOOS=darwin GOARCH=arm64 go build -o dist/sneedchat-bridge-macos-arm64 .
- name: Create Release
uses: https://gitea.com/actions/release-action@v1
with:
api_key: ${{ secrets.CI_TOKEN }}
owner: Salastil
repo: Sneedchat-Discord-Bridge-Go
tag: ${{ gitea.ref_name }}
name: Release ${{ gitea.ref_name }}
draft: false
prerelease: false
files: dist/*