You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-stats-server/.github/workflows/release.yaml

32 lines
776 B
YAML

1 year ago
name: Build and Release
on:
push:
tags:
- 'v*.*.*'
1 year ago
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
1 year ago
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Build
run: |
CGO_ENABLED=0 GOARCH=arm64 go build -a -ldflags '-s -w' -o ./out/stats-server
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: ./out/stats-server
token: ${{ secrets.GITHUB_TOKEN }}