Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle079 authored Feb 5, 2024
1 parent f9a04ab commit f182158
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,21 @@ jobs:
working-directory: ./RDSServiceClient

- name: Pack client
run: dotnet pack --configuration Release --no-build --output ../nupkgs -IncludeReferencedProjects
run: dotnet pack --configuration Release --no-build --output ../nupkgs/RDSServiceClient -IncludeReferencedProjects
working-directory: ./RDSServiceClient

- name: Push client to GitHub Packages
run: dotnet nuget push "*.nupkg" --source "https://nuget.pkg.github.com/kyle079/index.json" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
working-directory: ./nupkgs
working-directory: ./nupkgs/RDSServiceClient

- name: Push client to NugGet Gallery
run: dotnet nuget push "*.nupkg" --source "https://api.nuget.org/v3/index.json" --api-key ${{ secrets.NUGET_TOKEN }} --skip-duplicate
working-directory: ./nupkgs
- name: Pack library
run: dotnet pack --configuration Release --no-build --output ../nupkgs/RDSServiceLibrary -IncludeReferencedProjects
working-directory: ./RDSServiceLibrary

- name: Push client to GitHub Packages
run: dotnet nuget push "*.nupkg" --source "https://nuget.pkg.github.com/kyle079/index.json" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
working-directory: ./nupkgs/RDSServiceLibrary


- name: Restore service dependencies
run: dotnet restore
Expand Down

0 comments on commit f182158

Please sign in to comment.