-
Notifications
You must be signed in to change notification settings - Fork 17
38 lines (37 loc) · 1.19 KB
/
goreleaser.yaml
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
################################################################################
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> #
# Edit Makefile.maker.yaml instead. #
################################################################################
name: goreleaser
"on":
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
permissions:
contents: read
packages: write
jobs:
release:
name: goreleaser
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
check-latest: true
go-version: "1.21"
- name: Generate release info
run: |
go install github.com/sapcc/go-bits/tools/release-info@latest
release-info CHANGELOG.md $(git describe --tags --abbrev=0) > build/release-info
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
args: release --clean --release-notes=./build/release-info
version: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}