Skip to content

Instantly share code, notes, and snippets.

@kkdai
Created May 26, 2021 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkdai/d32ea8f7f99a7097e429b194d2c58c56 to your computer and use it in GitHub Desktop.
Save kkdai/d32ea8f7f99a7097e429b194d2c58c56 to your computer and use it in GitHub Desktop.
Put this file in .github/workflow/goreleaser.yml
name: goreleaser
on:
pull_request:
push:
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment