Merge pull request #2 from mr0xb/feat/releasebuilds

GHA build releases
This commit is contained in:
Steve 2026-08-24 15:48:23 -04:00 committed by GitHub
commit eab4b38da3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

54
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,54 @@
name: Release
on:
push:
branches:
- main
permissions:
contents: write
concurrency:
group: release
cancel-in-progress: false
jobs:
tag:
runs-on: ubuntu-latest
outputs:
new_tag: ${{ steps.tag.outputs.new_tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Bump version and push tag
id: tag
uses: anothrNick/github-tag-action@1.71.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch
build-and-release:
needs: tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ needs.tag.outputs.new_tag }}
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Build release binaries
run: make build
- name: Publish GitHub release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ needs.tag.outputs.new_tag }}
generate_release_notes: true
files: dist/*