From 5bd2fe4f903a4010f2f0a3a5b84f8990a8f2b62d Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Sat, 2 Nov 2024 11:41:32 +0000 Subject: [PATCH] Move commit tag to after github release notes --- .github/workflows/release.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd9f0298..a1bd83c4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,14 +74,12 @@ jobs: path: ./repo fetch-depth: 0 - - name: Tag the commit with version and push + - name: Checkout release commit working-directory: ./repo run: | echo $PKG_VERSION COMMIT_HASH=$(gh run view ${{ github.event.inputs.workflow_run_id }} --json headSha -q ".headSha") git checkout $COMMIT_HASH - git tag $PKG_VERSION - git push origin $PKG_VERSION - name: Generate Release working-directory: ./repo @@ -198,6 +196,12 @@ jobs: gh release upload $currentTag (get-item ../lib-rust/*.crate) gh release upload $currentTag (get-item ../lib-c/*.zip) + - name: Tag release commit + working-directory: ./repo + run: | + git tag $PKG_VERSION + git push origin $PKG_VERSION + - name: Publish NuGet Packages run: | for f in packages/*.nupkg; do