fix: log fatal and exit 1 on non-nil error. (#694) #156
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-gcp | |
on: | |
push: | |
# run only against tags | |
tags: | |
- '*' | |
permissions: | |
contents: write | |
# packages: write | |
# issues: write | |
jobs: | |
goreleaser: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: git fetch --force --tags | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.22.7 | |
- uses: goreleaser/goreleaser-action@v4 | |
with: | |
# either 'goreleaser' (default) or 'goreleaser-pro': | |
distribution: goreleaser | |
# Limit the number of parallel builds to prevent build crashes | |
args: release --clean -p 1 | |
workdir: cloud/gcp | |
version: '~> v1' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |