Skip to content

Commit 5c8f492

Browse files
committed
ci: Fix goreleaser failing to write changelog
1 parent 4c220e4 commit 5c8f492

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,23 @@ on:
77
tags:
88
- "[0-9]+.[0-9]+.[0-9]+"
99

10+
permissions:
11+
contents: write
12+
1013
jobs:
1114
build:
1215
runs-on: ubuntu-latest
1316
steps:
1417
# Checkout and set env
1518
- name: Checkout
1619
uses: actions/checkout@v4
20+
# It is required for the changelog to work correctly.
21+
with:
22+
fetch-depth: 0
1723
- name: Set up Go
1824
uses: actions/setup-go@v5
1925
with:
2026
go-version: 1.22
21-
# Setup env for multi-arch builds
22-
- name: Set up QEMU
23-
uses: docker/setup-qemu-action@v3
24-
with:
25-
image: tonistiigi/binfmt:latest
26-
platforms: arm64,arm
27-
- name: Set up Docker Buildx
28-
uses: docker/setup-buildx-action@v3
2927
# Build & Release binaries
3028
- name: Run GoReleaser
3129
uses: goreleaser/goreleaser-action@v5

0 commit comments

Comments
 (0)