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