Skip to content

Commit d63724c

Browse files
committed
Push packages to GitHub
1 parent ccf8545 commit d63724c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/access-token-management-ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: access-token-management\ci
33
permissions:
44
contents: read
55
checks: write
6+
packages: write
67

78
on:
89
workflow_dispatch:
@@ -74,6 +75,12 @@ jobs:
7475
if: (github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/'))
7576
run: dotnet nuget push artifacts\*.nupkg -s https://www.myget.org/F/duende_identityserver/api/v2/package -k ${{ secrets.MYGET }}
7677

78+
- name: Push NuGet package to GitHub Packages
79+
run: dotnet nuget push artifacts\*.nupkg --source https://nuget.pkg.github.com/DuendeSoftware/index.json --api-key ${{ secrets.GITHUB_TOKEN }}
80+
env:
81+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
82+
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83+
7784
- name: Upload artifacts
7885
uses: actions/upload-artifact@v4
7986
if: (github.ref == 'refs/heads/main' || contains(github.ref, 'refs/tags/'))

0 commit comments

Comments
 (0)