diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5ac7583..c476b64 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,10 +7,12 @@ on: jobs: build: + env: + NUGET_AUTH_TOKEN: ${{secrets.NUGET_PAT}} runs-on: ubuntu-16.04 strategy: matrix: - dotnet: [ '2.2.103', '3.0.100', '3.1.100' ] + dotnet: [ '3.1.100' ] name: Dotnet ${{ matrix.dotnet }} Publish steps: - uses: actions/checkout@master @@ -18,11 +20,10 @@ jobs: - uses: actions/setup-dotnet@v1 with: dotnet-version: '3.1.100' # SDK Version to use. - source-url: https://api.nuget.org/v3/index.json - env: - NUGET_AUTH_TOKEN: ${{secrets.NUGET_PAT}} - run: dotnet build src/Lyre.sln --configuration Release - name: Create the package run: dotnet pack --configuration Release src/Lyre.sln + env: + NUGET_AUTH_TOKEN: ${{secrets.NUGET_PAT}} - name: Publish the package to GPR run: dotnet nuget push src/Lyre.sln /bin/Release/*.nupkg