Release Tag

This commit is contained in:
Salastil
2025-11-16 12:49:39 -05:00
parent 002ff1ec92
commit 11d76b8e08

View File

@@ -0,0 +1,43 @@
name: "Build and Release"
on:
push:
tags:
- "v*"
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Build Linux AMD64
run: |
mkdir -p dist
GOOS=linux GOARCH=amd64 go build -o dist/Sneedchat-Discord-Bridge-linux-amd64
- name: Build Linux ARM64
run: |
GOOS=linux GOARCH=arm64 go build -o dist/Sneedchat-Discord-Bridge-linux-arm64
- name: Build Windows AMD64
run: |
GOOS=windows GOARCH=amd64 go build -o dist/Sneedchat-Discord-Bridge-windows-amd64.exe
- name: Build macOS ARM64
run: |
GOOS=darwin GOARCH=arm64 go build -o dist/Sneedchat-Discord-Bridge-macos-arm64
- name: Create Release
uses: https://gitea.com/actions/release-action@main
with:
api_key: ${{ secrets.GITEA_TOKEN }}
files: |
dist/*