From 55502f79d257ce5acdb282001ddda269fa255059 Mon Sep 17 00:00:00 2001 From: Konrad Dysput Date: Tue, 2 Jul 2024 19:07:12 +0200 Subject: [PATCH] Use git tag to determine the package name --- .github/workflows/release.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b520999..92310df 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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