File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,16 @@ jobs:
3939 - name : Install Syft (for SBOM generation)
4040 uses : anchore/sbom-action/download-syft@v0.23.0
4141
42+ - name : Install git-cliff
43+ uses : kenji-miyake/setup-git-cliff@v2
44+
45+ - name : Generate release notes
46+ run : git-cliff --latest --strip header -o RELEASE_NOTES.md
47+
4248 - name : Run GoReleaser
4349 uses : goreleaser/goreleaser-action@v6
4450 with :
4551 version : ' ~> v2'
46- args : release --clean
52+ args : release --clean --release-notes=RELEASE_NOTES.md
4753 env :
4854 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ snapshot:
5959 version_template : " {{ .Tag }}"
6060
6161changelog :
62- sort : asc
62+ disable : true
6363
6464nfpms :
6565 - id : cisshgo
Original file line number Diff line number Diff line change @@ -67,16 +67,20 @@ goreleaser release --snapshot --clean --skip=publish
6767
6868Releases are automated via GitHub Actions. To create a new release:
6969
70- 1 . Create and push a tag:
70+ 1 . Update the changelog and tag:
7171
7272 ``` bash
73- git tag v0.1.2
74- git push origin v0.1.2
73+ git-cliff --tag v1.2.3 -o CHANGELOG.md
74+ git add CHANGELOG.md
75+ git commit -m " docs: update changelog for v1.2.3"
76+ git tag -a v1.2.3 -m " v1.2.3"
77+ git push origin master v1.2.3
7578 ```
7679
77802 . GitHub Actions will automatically:
7881 - Build binaries for all platforms (linux/darwin/windows, amd64/arm64)
7982 - Create multi-arch Docker images and push to GitHub Container Registry (ghcr.io)
83+ - Generate release notes from git-cliff
8084 - Generate SBOMs for security compliance
8185 - Create GitHub Release with binaries, archives, and checksums
8286 - Build deb/rpm packages
You can’t perform that action at this time.
0 commit comments