From 2dca9820ab80cfc8398d6e0b324579ffab133468 Mon Sep 17 00:00:00 2001 From: Matthew Casperson Date: Fri, 28 May 2021 13:16:02 +1000 Subject: [PATCH] Using gpr to push the package --- .github/workflows/dotnetcore.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index afde3b1..037447b 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -17,8 +17,6 @@ jobs: uses: OctopusDeploy/install-octopus-cli-action@v1.1.6 with: version: latest - - name: Log into nuget - run: dotnet nuget add source --username mcasperson --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/OctopusSamples/index.json" - name: Build with dotnet run: dotnet build --configuration Release - name: Publish with dotnet @@ -27,8 +25,10 @@ jobs: run: octo pack --id randomquotes --version 0.1.${{ github.run_number }} --include RandomQuotes/bin/Release/netcoreapp3.1/publish/ - name: Create package run: cd RandomQuotes/bin/Release/netcoreapp3.1/publish; zip -r ../../../../../randomquotes.0.1.${{ github.run_number }}.zip * + - name: Install gpr + run: dotnet tool install gpr -g - name: Push app - run: dotnet nuget push randomquotes.0.1.${{ github.run_number }}.nupkg --source "github" + run: gpr push randomquotes.0.1.${{ github.run_number }}.nupkg --repository https://github.com/OctopusSamples/RandomQuotes -k ${{ secrets.GITHUB_TOKEN }} - name: Create Release id: create_release uses: actions/create-release@v1