From 70566a3059d56f6372f68b7e8314d1ea8ea04793 Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Sat, 2 Nov 2024 11:53:46 +0000 Subject: [PATCH] Move commit tag into overall script --- .github/workflows/release.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 91334a5a..0479d01d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -139,6 +139,11 @@ jobs: Write-Host "Current tag: $currentTag" Write-Host "Previous tag: $previousTag" + # Push the tag to the repository + Write-Host "Tagging release commit..." + git tag $currentTag + git push origin $currentTag + # Generate release notes Write-Host "Generating release notes..." $headers = @{ @@ -198,12 +203,6 @@ 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