Build arm64 binaries as part of the release (#494) #55
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: goreleaser | |
on: | |
push: | |
branches: | |
- 'test-goreleaser/**' | |
tags: | |
- 'v*' | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
git fetch --prune --unshallow | |
- name: Generate version | |
run: echo "VERSION=$(git describe --always --tags --dirty)" >> $GITHUB_ENV | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: 'go.mod' | |
- name: (dry-run) GoReleaser | |
if: startsWith(github.ref_name, 'test-goreleaser') | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
version: latest | |
args: release --skip=validate,publish | |
- name: Run GoReleaser | |
if: startsWith(github.ref_name, 'test-goreleaser') != true | |
uses: goreleaser/goreleaser-action@v4 | |
with: | |
version: latest | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
VERSION: ${{ env.VERSION }} |