diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 42398c1..043ad11 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,18 +51,18 @@ jobs: run: Npgmq.Test/scripts/run-tests.sh 0.31.0 - name: Pack - #if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') run: dotnet pack Npgmq/Npgmq.csproj --no-build --configuration Release /p:PackageVersion=${{ env.VERSION }} /p:CopyrightYear=$(date +%Y) --output out - uses: actions/upload-artifact@v4 - #if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') with: name: build-artifact path: out publish: needs: build - #if: startsWith(github.ref, 'refs/tags/v') + if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest steps: - uses: actions/download-artifact@v4 @@ -75,5 +75,5 @@ jobs: with: dotnet-version: '8.0.x' -# - name: Push -# run: dotnet nuget push "out/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json + - name: Push + run: dotnet nuget push "out/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json