2020-11-20 17:00:14 +08:00
|
|
|
name: goreleaser
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
goreleaser:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-02-19 16:45:25 +08:00
|
|
|
uses: actions/checkout@v4
|
2020-11-20 17:00:14 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Set up Go
|
2024-02-19 16:45:25 +08:00
|
|
|
uses: actions/setup-go@v5
|
2020-11-20 17:00:14 +08:00
|
|
|
with:
|
2024-10-17 17:22:41 +08:00
|
|
|
go-version: '1.23'
|
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
|
2024-02-19 16:45:25 +08:00
|
|
|
uses: goreleaser/goreleaser-action@v5
|
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 }}
|