Release Tag
This commit is contained in:
43
.gitea/workflows/release.yml
Normal file
43
.gitea/workflows/release.yml
Normal 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/*
|
||||
Reference in New Issue
Block a user