Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwiese authored Jan 27, 2020
1 parent 55d8f82 commit cf8fb12
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,23 @@ 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
# Authenticates packages to push to GPR
- 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

0 comments on commit cf8fb12

Please sign in to comment.