-
Notifications
You must be signed in to change notification settings - Fork 12
34 lines (34 loc) · 1.03 KB
/
release.yaml
File metadata and controls
34 lines (34 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0.0, v1.0.0-rc1
name: Release
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: 1.26.x
- name: Run GoReleaser (dry run)
uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: '~> v2' # latest
args: release --clean --skip=validate --skip=publish
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v7
with:
distribution: goreleaser
version: '~> v2' # latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.GH_PAT }}
AUR_GITHUB_TOKEN: ${{ secrets.AUR_SSH_PRIVATE_KEY }}