Skip to content

Commit

Permalink
Fixes publish
Browse files Browse the repository at this point in the history
  • Loading branch information
koen-serry committed Jan 15, 2024
1 parent 8bd31a5 commit fecb80c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/dotnet_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,15 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
dotnet-version: |
3.1.x
5.0.x
- name: Restore dependencies
run: dotnet restore src/Twikey
run: dotnet restore src/Twikey && dotnet restore src/TwikeyTests

- name: Build
run: dotnet build src/Twikey --no-restore
run: dotnet build src/Twikey --no-restore && dotnet build src/TwikeyTests --no-restore

- name: Publish
run: (tmpDir=$(mktemp -d) && dotnet pack --no-build src/Twikey --output $tmpDir && dotnet nuget push "$tmpDir/$(ls $tmpDir)" --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json); rm -rf $tmpDir
Expand Down

0 comments on commit fecb80c

Please sign in to comment.