2020-11-20 10:00:14 +01:00
|
|
|
name: goreleaser
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
goreleaser:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-10-27 08:22:14 +02:00
|
|
|
uses: actions/checkout@v3
|
2020-11-20 10:00:14 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Set up Go
|
2023-07-21 04:30:46 +02:00
|
|
|
uses: actions/setup-go@v4
|
2020-11-20 10:00:14 +01:00
|
|
|
with:
|
2023-08-14 05:10:38 +02:00
|
|
|
go-version: '1.21'
|
2021-06-02 18:44:33 +02:00
|
|
|
|
2020-11-20 10:00:14 +01:00
|
|
|
- name: Make All
|
|
|
|
run: |
|
|
|
|
./package.sh
|
|
|
|
|
|
|
|
- name: Run GoReleaser
|
2023-07-21 04:30:46 +02:00
|
|
|
uses: goreleaser/goreleaser-action@v4
|
2020-11-20 10:00:14 +01:00
|
|
|
with:
|
|
|
|
version: latest
|
2023-07-21 04:30:46 +02:00
|
|
|
args: release --clean --release-notes=./Release.md
|
2020-11-20 10:00:14 +01:00
|
|
|
env:
|
2020-11-20 10:35:06 +01:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GPR_TOKEN }}
|