Skip to content

Commit aa2ea90

Browse files
committed
Add release workflow
1 parent b1da89b commit aa2ea90

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: release
2+
3+
on:
4+
pull_request:
5+
push:
6+
# run only against tags
7+
tags:
8+
- "v*"
9+
10+
permissions:
11+
contents: write
12+
# packages: write
13+
# issues: write
14+
# id-token: write
15+
16+
jobs:
17+
goreleaser:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
- name: Set up Go
25+
uses: actions/setup-go@v5
26+
with:
27+
go-version: stable
28+
# More assembly might be required: Docker logins, GPG, etc.
29+
# It all depends on your needs.
30+
- name: Run GoReleaser
31+
uses: goreleaser/goreleaser-action@v6
32+
with:
33+
# either 'goreleaser' (default) or 'goreleaser-pro'
34+
distribution: goreleaser
35+
# 'latest', 'nightly', or a semver
36+
version: "~> v2"
37+
args: release --clean
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
41+
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

0 commit comments

Comments
 (0)