From 0314659677ad1a052a356db76062db3307e712d4 Mon Sep 17 00:00:00 2001 From: mr0xb <47467008+mr0xb@users.noreply.github.com> Date: Mon, 24 Aug 2026 15:47:53 -0400 Subject: [PATCH] GHA build releases --- .github/workflows/release.yml | 54 +++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..7fc0524 --- /dev/null +++ b/.github/workflows/release.yml @@ -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/*