Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Commit 2a06356

Browse files
committed
gpr requires nuget for basic auth
1 parent f79c6ec commit 2a06356

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,22 @@ jobs:
1515
- run: dotnet build --configuration ${{ matrix.configuration }}
1616
- run: dotnet test --no-build --configuration ${{ matrix.configuration }}
1717
- uses: actions/upload-artifact@v1
18-
if: matrix.configuration == 'Release' && matrix.os == 'ubuntu-latest'
18+
if: matrix.configuration == 'Release' && matrix.os == 'windows-latest'
1919
with:
2020
name: release-files
2121
path: DigitalOcean.API/bin/Release
2222
publish:
2323
needs: build
24-
runs-on: ubuntu-latest
24+
runs-on: windows-latest
2525
steps:
2626
- uses: actions/download-artifact@v1
2727
if: github.event_name == 'push' && github.ref == 'refs/heads/release'
2828
with:
2929
name: release-files
3030
- run: dotnet nuget push release-files/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
3131
if: github.event_name == 'push' && github.ref == 'refs/heads/release'
32-
- run: dotnet nuget push release-files/*.nupkg -s https://trmcnvn:${{ secrets.GITHUB_API_TOKEN }}@nuget.pkg.github.com/trmcnvn/index.json
32+
- run: |
33+
choco install nuget.commandline
34+
nuget sources add -name gpr -source https://nuget.pkg.github.com/trmcnvn/index.json -username trmcnvn -password ${{ secrets.GITHUB_API_TOKEN }}
35+
nuget push release-files/*.nupkg -source gpr
3336
if: github.event_name == 'push' && github.ref == 'refs/heads/release'

0 commit comments

Comments
 (0)