Skip to content

Commit 17a13f1

Browse files
authored
Update release.yml
1 parent aa82914 commit 17a13f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
run: |
8383
git add CHANGELOG.md
8484
git commit -S -m "Updated CHANGELOG.md for ${{ env.NBGV_SimpleVersion }} release"
85+
echo "RELEASE_COMMIT_HASH=$((git rev-parse stable))" >> $GITHUB_ENV
8586
8687
- name: 🛠️ Building library in release mode
8788
run: dotnet pack src/ -c release -p:ContinuousIntegrationBuild=true
@@ -99,9 +100,10 @@ jobs:
99100
- name: 🛠️ Create GitHub release
100101
uses: thomaseizinger/[email protected]
101102
env:
102-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
103+
GITHUB_TOKEN: ${{ env.RELEASE_COMMIT_HASH }}
103104
with:
104105
tag_name: v${{ env.SIMPLE_VERSION }}
106+
target_commitish: $(( git rev-parse stable ))
105107
name: Release ${{ env.SIMPLE_VERSION }}
106108
body: ${{ steps.changelog_reader.outputs.changes }}
107109
draft: false

0 commit comments

Comments
 (0)