2021-11-14 06:27:52 +00:00
|
|
|
name: goreleaser
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "*"
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
goreleaser:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-06-01 04:36:29 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-11-14 06:27:52 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2023-03-22 09:03:50 +00:00
|
|
|
- uses: actions/setup-go@v4
|
2021-11-14 06:27:52 +00:00
|
|
|
with:
|
2023-02-08 08:30:56 +00:00
|
|
|
go-version: "1.20"
|
2022-08-15 18:17:44 +00:00
|
|
|
check-latest: true
|
|
|
|
cache: true
|
|
|
|
- uses: goreleaser/goreleaser-action@v3
|
2021-11-14 06:27:52 +00:00
|
|
|
with:
|
|
|
|
distribution: goreleaser
|
|
|
|
version: latest
|
|
|
|
args: release --rm-dist
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|