-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (44 loc) · 1.23 KB
/
release.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
name: Release
on:
push:
tags:
- v*
workflow_dispatch:
permissions:
contents: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# We need to do this because of:
# https://github.com/actions/checkout/issues/290 and its side-effects
# as https://github.com/goreleaser/goreleaser/issues/2919
- name: Fetch full annotated tags metadata
run: git fetch --force --tags
- name: Set up makesystem
run: make makesystem_install
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
- name: Import Release Signing GPG key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.RELEASE_SIGNING_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.RELEASE_SIGNING_GPG_PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}