2022-05-01 12:11:08 +03:00
|
|
|
name: Goreleaser
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
goreleaser:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-12-11 16:37:53 +03:00
|
|
|
uses: actions/checkout@v4
|
2022-05-01 12:11:08 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
-
|
|
|
|
name: Set up Go
|
2023-12-11 16:37:53 +03:00
|
|
|
uses: actions/setup-go@v5
|
2022-05-01 12:11:08 +03:00
|
|
|
with:
|
|
|
|
go-version: 1.17
|
|
|
|
-
|
|
|
|
name: Run GoReleaser
|
2023-12-11 16:37:53 +03:00
|
|
|
uses: goreleaser/goreleaser-action@v5
|
2022-05-01 12:11:08 +03:00
|
|
|
with:
|
|
|
|
# either 'goreleaser' (default) or 'goreleaser-pro'
|
|
|
|
distribution: goreleaser
|
|
|
|
version: latest
|
|
|
|
args: release --rm-dist
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|