diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index 95c07a4..eec4009 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -11,8 +11,6 @@ jobs: nuget: name: Publish NuGet package runs-on: ubuntu-latest - env: - NUGET_API_KEY: ${{secrets.NUGET_API_KEY}} steps: - uses: actions/checkout@v3 @@ -20,11 +18,12 @@ jobs: with: dotnet-version: "7.0.x" source-url: https://api.nuget.org/v3/index.json + env: + NUGET_AUTH_TOKEN: ${{secrets.NUGET_AUTH_TOKEN}} - run: dotnet build ./src/Parsec --configuration Release - name: Create NuGet package run: dotnet pack ./src/Parsec --configuration Release - name: Publish NuGet package - - run: dotnet nuget push ./src/Parsec/bin/Release/*.nupkg --api-key "$NUGET_API_KEY" + run: dotnet nuget push ./src/Parsec/bin/Release/*.nupkg --api-key "$NUGET_AUTH_TOKEN"