Skip to content

Commit 9fcca3a

Browse files
Create goreleaser action
1 parent d8561dc commit 9fcca3a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/go.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
pull_request:
3+
push:
4+
branches: [ main ]
5+
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
goreleaser:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- name: Set up Go
18+
uses: actions/setup-go@v4
19+
- name: Run GoReleaser
20+
uses: goreleaser/goreleaser-action@v5
21+
with:
22+
distribution: goreleaser
23+
# 'latest', 'nightly', or a semver
24+
version: 'latest'
25+
args: release --clean
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)