Move commit tag to after github release notes

This commit is contained in:
Caelan Sayler
2024-11-02 11:41:32 +00:00
parent 36bceca993
commit 5bd2fe4f90

View File

@@ -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