From f3bf36e93e0aeb4233c32d5f4329c06a971ef0e9 Mon Sep 17 00:00:00 2001 From: OluwaVader Date: Sat, 28 Feb 2026 19:38:09 +0100 Subject: [PATCH] create tag for workflow dispatch --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 509eb4b..6dfb9ab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,10 +73,16 @@ jobs: dotnet nuget push "./artifacts/*.nupkg" --source https://api.nuget.org/v3/index.json --skip-duplicate + + - name: Create tag if not exists + if: github.event_name == 'workflow_dispatch' + run: | + git tag "v${{ env.VERSION }}" || true + git push origin "v${{ env.VERSION }}" || true - name: Create GitHub Release - if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v2 with: + tag_name: "v${{ env.VERSION }}" generate_release_notes: true files: ./artifacts/*.nupkg