File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 44 tags : ['v*']
55
66jobs :
7+ # Source: https://crates.io/docs/trusted-publishing
78 publish :
89 runs-on : ubuntu-latest
9- # Source: https://crates.io/docs/trusted-publishing
1010 environment : release # Optional: for enhanced security
1111 permissions :
1212 id-token : write # Required for OIDC token exchange
@@ -18,11 +18,14 @@ jobs:
1818 env :
1919 CARGO_REGISTRY_TOKEN : ${{ steps.auth.outputs.token }}
2020
21- # Source: https://medium.com/@usman_qb
21+ # Source: https://medium.com/@usman_qb
22+ release :
23+ runs-on : ubuntu-latest
24+ steps :
2225 - name : Create release body
2326 id : create_release_body
2427 run : |
25- RELEASE_VERSION="${{ github.ref_name.slice }}"
28+ RELEASE_VERSION="${{ github.ref_name }}"
2629 echo "Version: $RELEASE_VERSION"
2730 RELEASE_BODY=$(awk -v ver="[${RELEASE_VERSION:1}]" '/^## / { if (p) { exit }; if ($2 == ver) { p=1; next } } p && NF' CHANGELOG.md)
2831 {
3134 echo EOF
3235 } >> $GITHUB_OUTPUT
3336
34- - name : Create Release
37+ - name : Create GitHub release
3538 env :
3639 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3740 run : |
You can’t perform that action at this time.
0 commit comments