Skip to content

Commit 55502f7

Browse files
committed
Use git tag to determine the package name
1 parent d3611dc commit 55502f7

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ jobs:
1010
runs-on: windows-latest
1111

1212
steps:
13-
- name: Extract version from tag
14-
id: extract_version
15-
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $env:GITHUB_ENV
16-
shell: pwsh
17-
18-
- name: Verify extracted version
19-
run: echo "Extracted version is $env:VERSION ${{ github.ref_name }}"
20-
shell: pwsh
21-
2213
- name: Checkout code
2314
uses: actions/checkout@v4
2415

@@ -42,4 +33,4 @@ jobs:
4233
- name: Publish to NuGet
4334
env:
4435
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
45-
run: dotnet nuget push ./output/Backtrace$PACKAGE_VERSION.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json
36+
run: dotnet nuget push ./output/Backtrace${{ github.ref_name }}.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)