Added separate action to publish versioned binaries. #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish version | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
needs: test | ||
strategy: | ||
matrix: | ||
os: [ linux, darwin ] | ||
arch: [ amd64, arm64 ] | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v4 | ||
- name: Create release | ||
uses: softprops/action-gh-release@v1 | ||
- name: Publish binaries | ||
uses: wangyoucao577/go-release-action@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
goos: ${{ matrix.os }} | ||
goarch: ${{ matrix.arch }} | ||
release_tag: ${{ github.ref_name }} | ||
asset_name: gobbler-${{ matrix.os }}-${{ matrix.arch }} | ||
overwrite: true | ||
compress_assets: false |