| 1 |
|
| 2 |
name: goreleaser |
| 3 |
|
| 4 |
on: |
| 5 |
push: |
| 6 |
|
| 7 |
tags: |
| 8 |
- "*" |
| 9 |
|
| 10 |
permissions: |
| 11 |
contents: write |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
jobs: |
| 16 |
goreleaser: |
| 17 |
runs-on: ubuntu-latest |
| 18 |
steps: |
| 19 |
- uses: actions/checkout@v3 |
| 20 |
with: |
| 21 |
fetch-depth: 0 |
| 22 |
- run: git fetch --force --tags |
| 23 |
- uses: actions/setup-go@v4 |
| 24 |
with: |
| 25 |
go-version: stable |
| 26 |
|
| 27 |
|
| 28 |
- uses: goreleaser/goreleaser-action@v5 |
| 29 |
with: |
| 30 |
|
| 31 |
distribution: goreleaser |
| 32 |
version: latest |
| 33 |
args: release --clean |
| 34 |
env: |
| 35 |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 36 |
|
| 37 |
|
| 38 |
|