2022-05-28 10:23:00 +03:00
|
|
|
name: Goreleaser
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
goreleaser:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-08 17:18:00 +03:00
|
|
|
uses: actions/checkout@v4
|
2022-05-28 10:23:00 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
-
|
|
|
|
name: Set up Go
|
2023-12-13 05:27:25 +03:00
|
|
|
uses: actions/setup-go@v5
|
2022-05-28 10:23:00 +03:00
|
|
|
with:
|
2023-03-01 05:03:48 +03:00
|
|
|
go-version: 1.20
|
2022-05-28 10:23:00 +03:00
|
|
|
-
|
|
|
|
name: Run GoReleaser
|
2022-12-21 09:43:06 +03:00
|
|
|
uses: goreleaser/goreleaser-action@v4
|
2022-05-28 10:23:00 +03:00
|
|
|
with:
|
|
|
|
# either 'goreleaser' (default) or 'goreleaser-pro'
|
|
|
|
distribution: goreleaser
|
|
|
|
version: latest
|
2023-06-05 04:52:39 +03:00
|
|
|
args: release --clean
|
2022-05-28 10:23:00 +03:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|