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