Skip to content

Commit 8b285b8

Browse files
committed
update publish workflow to publish to official nuget as well
1 parent eb5c64d commit 8b285b8

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,15 @@ jobs:
181181
- name: Pack `UI`
182182
run: dotnet pack "${{ github.event.repository.name }}/source" /p:Version=${VERSION} --no-build --output .
183183

184-
- name: Add NuGet Source
184+
- name: Add GitHub source
185185
run: dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name github --username ${{ github.repository_owner }} --password ${{ github.token }} --store-password-in-clear-text
186186

187-
- name: Publish `UI`
188-
run: dotnet nuget push SimulationTree.UI.${VERSION}.nupkg --source github --api-key ${NUGET_TOKEN}
187+
- name: Publish `UI` to GitHub registry
188+
run: dotnet nuget push SimulationTree.UI.${VERSION}.nupkg --source github --api-key ${API_KEY}
189189
env:
190-
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
190+
API_KEY: ${{ secrets.NUGET_TOKEN_GITHUB }}
191+
192+
- name: Publish `UI` to official registry
193+
run: dotnet nuget push SimulationTree.UI.${VERSION}.nupkg --source nuget.org --api-key ${API_KEY}
194+
env:
195+
API_KEY: ${{ secrets.NUGET_TOKEN_OFFICIAL }}

0 commit comments

Comments
 (0)