diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index c6d6f22..10f1094 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -24,7 +24,7 @@ jobs: - uses: actions/checkout@v3 - name: Set Version Variable - if: ${{ github.ref_type == 'tag' }} + if: github.ref_type == 'tag' env: TAG: ${{ github.ref_name }} run: echo "VERSION=${TAG#v}" >> $GITHUB_ENV @@ -56,6 +56,7 @@ jobs: run: dotnet pack --output nupkgs --no-restore --no-build -c Release /p:PackageVersion=$VERSION - name: Push + if: github.ref_type == 'tag' run: dotnet nuget push nupkgs/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json \ No newline at end of file