@@ -8,47 +8,42 @@ permissions:
88 id-token : write
99 attestations : write
1010
11-
1211jobs :
13- get-version :
12+ create-release :
1413 runs-on : ubuntu-latest
15- outputs :
16- version : ${{ steps.changelog.outputs.version }}
1714 steps :
18- - uses : actions/checkout@v4
15+ - uses : actions/checkout@v5
16+ with :
17+ fetch-depth : 0
1918
2019 - name : Extract version from CHANGELOG.md
2120 id : changelog
2221 run : |
2322 version=$(grep -m 1 -oP '^##\s*\[\K[0-9]+\.[0-9]+\.[0-9]+' CHANGELOG.md)
2423 echo "version=$version" >> $GITHUB_OUTPUT
25- tag :
26- needs : get-version
27- runs-on : ubuntu-latest
28- steps :
29- - uses : actions/checkout@v5
30- with :
31- fetch-depth : 0
3224
33- - name : Create and push git tag
25+ # - name: Create and push git tag
26+ # run: |
27+ # version=${{ steps.changelog.outputs.version }}
28+
29+ # git config user.name "github-actions[bot]"
30+ # git config user.email "github-actions[bot]@users.noreply.github.com"
31+
32+ # git tag "v$version"
33+ # git push origin "v$version"
34+ - name : " Generate Release Changelog"
3435 run : |
35- version=${{ needs.get-version.outputs.version }}
36-
37- git config user.name "github-actions[bot]"
38- git config user.email "github-actions[bot]@users.noreply.github.com"
39-
40- git tag "v$version"
41- git push origin "v$version"
42- docker :
43- needs : get-version
44- uses : ./.github/workflows/docker_build.yml
45- with :
46- version : ${{ needs.get-version.outputs.version }}
47- secrets : inherit
48-
49- nuget :
50- needs : get-version
51- uses : ./.github/workflows/dotnet_tool_build.yml
52- with :
53- version : ${{ needs.get-version.outputs.version }}
54- secrets : inherit
36+ gh extension install chelnak/gh-changelog
37+ gh changelog new --latest
38+
39+ - name : Create GitHub Release
40+ id : create_release
41+ uses : actions/create-release@v1
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+ with :
45+ tag_name : ${{ github.ref }}
46+ release_name : Release ${{ github.ref }}
47+ draft : false
48+ prerelease : false
49+ body_path : CHANGELOG.md
0 commit comments