Skip to content

Commit e5926bc

Browse files
authored
Merge pull request #5284 from y-eight/main
ci: switch to goreleaser changelog generation
2 parents f0fecf7 + 355f2bc commit e5926bc

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

.github/workflows/release.yaml

+1-12
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,12 @@ jobs:
6666
- name: Archive the OpenAPI JSON schemas
6767
run: |
6868
tar -czvf ./output/crd-schemas.tar.gz -C schemas .
69-
- name: Download release notes utility
70-
env:
71-
GH_REL_URL: https://github.com/buchanae/github-release-notes/releases/download/0.2.0/github-release-notes-linux-amd64-0.2.0.tar.gz
72-
run: cd /tmp && curl -sSL ${GH_REL_URL} | tar xz && sudo mv github-release-notes /usr/local/bin/
73-
- name: Generate release notes
74-
run: |
75-
NOTES="./output/notes.md"
76-
echo '## CLI Changelog' > ${NOTES}
77-
github-release-notes -org fluxcd -repo flux2 -since-latest-release -include-author >> ${NOTES}
78-
env:
79-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8069
- name: Run GoReleaser
8170
id: run-goreleaser
8271
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0
8372
with:
8473
version: latest
85-
args: release --release-notes=output/notes.md --skip=validate
74+
args: release --skip=validate
8675
env:
8776
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8877
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}

.goreleaser.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
project_name: flux
2+
changelog:
3+
use: github-native
24
builds:
35
- <<: &build_defaults
46
binary: flux

0 commit comments

Comments
 (0)