| 1 |
name: Goreleaser |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
tags: |
| 6 |
- "*" |
| 7 |
|
| 8 |
permissions: |
| 9 |
contents: write |
| 10 |
|
| 11 |
jobs: |
| 12 |
goreleaser: |
| 13 |
runs-on: ubuntu-latest |
| 14 |
steps: |
| 15 |
- name: Checkout |
| 16 |
uses: actions/checkout@v3 |
| 17 |
with: |
| 18 |
fetch-depth: 0 |
| 19 |
- name: Setup go |
| 20 |
uses: actions/setup-go@v5 |
| 21 |
with: |
| 22 |
go-version: "^1" |
| 23 |
|
| 24 |
- name: Run GoReleaser |
| 25 |
uses: goreleaser/goreleaser-action@v4 |
| 26 |
with: |
| 27 |
# either 'goreleaser' (default) or 'goreleaser-pro' |
| 28 |
distribution: goreleaser |
| 29 |
version: latest |
| 30 |
args: release --rm-dist |
| 31 |
env: |
| 32 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |