Skip to content

Commit 7fc4503

Browse files
committed
add to github packages
1 parent 84fc682 commit 7fc4503

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ jobs:
4242
dotnet restore src/TonapiClient/TonapiClient.csproj
4343
dotnet build src/TonapiClient/TonapiClient.csproj --no-restore --configuration Release
4444
dotnet pack src/TonapiClient/TonapiClient.csproj --no-build --configuration Release --output ./artifacts
45+
46+
- name: Add GitHub Packages source
47+
run: dotnet nuget add source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" \
48+
--name "github" \
49+
--username "${{ github.repository_owner }}" \
50+
--password "${{ secrets.PAT_TOKEN }}" \
51+
--store-password-in-clear-text
52+
53+
- name: Publish to GitHub Packages
54+
run: dotnet nuget push ./artifacts/*.nupkg --source "github" --skip-duplicate
4555

4656
- name: Publish to NuGet
4757
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)