Skip to content

Commit

Permalink
Use git tag to determine the package name
Browse files Browse the repository at this point in the history
  • Loading branch information
konraddysput committed Jul 2, 2024
1 parent d3611dc commit 55502f7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,6 @@ jobs:
runs-on: windows-latest

steps:
- name: Extract version from tag
id: extract_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $env:GITHUB_ENV
shell: pwsh

- name: Verify extracted version
run: echo "Extracted version is $env:VERSION ${{ github.ref_name }}"
shell: pwsh

- name: Checkout code
uses: actions/checkout@v4

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

0 comments on commit 55502f7

Please sign in to comment.