Use Goreleaser, and publish arm64 #134
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: Build Binary | |
on: { push: { branches-ignore: [main, production] } } | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build-binary: | |
name: Build binary | |
runs-on: ubuntu-latest | |
container: golang:1.20 | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Mark source directory as safe. | |
run: git config --global --add safe.directory $GITHUB_WORKSPACE | |
- name: parse short SHA | |
id: vars | |
run: | | |
echo ::set-output name=sha::$(git rev-parse --short=8 ${{ github.sha }}) | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
version: latest | |
args: release --snapshot | |
env: | |
BUGSNAG_API_KEY: ${{ secrets.PREPROD_BUGSNAG_API_KEY }} | |
SHORT_SHA: ${{ steps.vars.outputs.sha }} |