Skip to content

Commit feb3113

Browse files
committed
BUILD/MINOR: github: add manual release action
1 parent 19b6797 commit feb3113

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: manual goreleaser
2+
on:
3+
workflow_dispatch:
4+
jobs:
5+
manual_goreleaser:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v3
10+
with:
11+
# we have to fetch all history to be able to generate the release note. c.f. https://goreleaser.com/ci/actions/.
12+
fetch-depth: 0
13+
- name: Set up Go
14+
uses: actions/setup-go@v4
15+
with:
16+
go-version-file: 'go.mod'
17+
- name: Reposition to latest tag
18+
run: |
19+
git checkout $(git describe --tags --abbrev=0)
20+
- name: Run GoReleaser
21+
uses: goreleaser/goreleaser-action@v4
22+
with:
23+
distribution: goreleaser
24+
version: latest
25+
args: release --clean --skip-announce
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)