Skip to content

Make goreleaser use v2 #129

Make goreleaser use v2

Make goreleaser use v2 #129

Workflow file for this run

name: builder-releaser
on:
push:
pull_request:
permissions:
contents: write
jobs:
build-test-vet-release:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.19
-
name: Build
run: go build -v ./...
working-directory: v2
-
name: Test
run: go test -v ./...
working-directory: v2
-
name: Vet
run: go vet -v ./...
working-directory: v2
-
if: startsWith(github.ref, 'refs/tags/v') == true
name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
-
if: startsWith(github.ref, 'refs/tags/v') == true
name: GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: v1.15.2
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}