-
Notifications
You must be signed in to change notification settings - Fork 19
48 lines (41 loc) · 1.18 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
---
name: Release
on:
push:
tags:
- "v*"
jobs:
Release:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ['1.22.x']
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Go installation
uses: actions/[email protected]
with:
go-version: ${{ matrix.go }}
- name: Import GPG key
id: import_gpg
uses: crazy-max/[email protected]
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Get tag
id: tag
uses: dawidd6/[email protected]
- name: Generate CHANGELOG for this version
run: ./utils/getChangelogRelease CHANGELOG.md ${{ steps.tag.outputs.tag }} > /tmp/RELEASE_CHANGELOG.md
- name: Run GoReleaser
uses: goreleaser/[email protected]
with:
version: latest
args: release --rm-dist --release-notes "/tmp/RELEASE_CHANGELOG.md"
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}