diff --git a/.github/workflows/pack.yml b/.github/workflows/pack.yml index b3efb99..df30dd6 100644 --- a/.github/workflows/pack.yml +++ b/.github/workflows/pack.yml @@ -2,7 +2,7 @@ name: Pack on: pull_request: - + jobs: pack: runs-on: ubuntu-latest @@ -12,8 +12,13 @@ jobs: with: dotnet-version: 8.0.100 - run: echo "${{ secrets.SNK_FILE }}" | base64 --decode > private.snk + - run: echo "${{ github.event.pull_request.number }}" - run: | dotnet pack \ -o pack \ -p:TreatWarningsAsErrors=true \ -p:AssemblyOriginatorKeyFile=$(pwd)/private.snk + - if: env.NUGET_API_KEY != '' + run: .github/bin/dist-nuget.sh + env: + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}