-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.26 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
39
40
41
42
################################################################################
# This file is AUTOGENERATED with <https://github.com/sapcc/go-makefile-maker> #
# Edit Makefile.maker.yaml instead. #
################################################################################
# Copyright 2024 SAP SE
# SPDX-License-Identifier: Apache-2.0
name: goreleaser
"on":
push:
tags:
- '*'
permissions:
contents: write
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@v5
with:
check-latest: true
go-version: 1.23.4
- name: Generate release info
run: |
go install github.com/sapcc/go-bits/tools/release-info@latest
mkdir -p build
release-info CHANGELOG.md "$(git describe --tags --abbrev=0)" > build/release-info
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
args: release --clean --release-notes=./build/release-info
version: latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}