File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,10 +118,15 @@ jobs:
118118 - name : Pack `Materials.Systems`
119119 run : dotnet pack "${{ github.event.repository.name }}/source" /p:Version=${VERSION} --no-build --output .
120120
121- - name : Add NuGet Source
121+ - name : Add GitHub source
122122 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
123123
124- - name : Publish `Materials.Systems`
125- run : dotnet nuget push SimulationTree.Materials.Systems.${VERSION}.nupkg --source github --api-key ${NUGET_TOKEN }
124+ - name : Publish `Materials.Systems` to GitHub registry
125+ run : dotnet nuget push SimulationTree.Materials.Systems.${VERSION}.nupkg --source github --api-key ${API_KEY }
126126 env :
127- NUGET_TOKEN : ${{ secrets.NUGET_TOKEN }}
127+ API_KEY : ${{ secrets.NUGET_TOKEN_GITHUB }}
128+
129+ - name : Publish `Materials.Systems` to official registry
130+ run : dotnet nuget push SimulationTree.Materials.Systems.${VERSION}.nupkg --source nuget.org --api-key ${API_KEY}
131+ env :
132+ API_KEY : ${{ secrets.NUGET_TOKEN_OFFICIAL }}
You can’t perform that action at this time.
0 commit comments