Skip to content

Commit

Permalink
Update build-test-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lucassklp committed Jul 10, 2023
1 parent 36336be commit 4cb14b5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ jobs:
- name: Pack
run: |
cd Desktop.Robot
dotnet pack -c Release -o out
dotnet pack -c Release -o out
- name: Push Desktop.Robot to GitHub registry
run: |
dotnet nuget sources add -name "GPR" -Source https://nuget.pkg.github.com/lucassklp/index.json -Username lucassklp -Password ${{ secrets.GITHUB_TOKEN }}
dotnet nuget push ./Desktop.Robot/out/*.nupkg --skip-duplicate
- name: Publish Desktop.Robot to nuget.org
uses: brandedoutcast/[email protected]
with:
PROJECT_FILE_PATH: Desktop.Robot/Desktop.Robot.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
run: |
dotnet nuget push ./Desktop.Robot/out/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate

0 comments on commit 4cb14b5

Please sign in to comment.