From c98cc1ec72eaec7926122457c99bb4527bf0039a Mon Sep 17 00:00:00 2001 From: Henry Alberto Rodriguez Rodriguez <1284760+henalbrod@users.noreply.github.com> Date: Wed, 18 Sep 2019 09:02:00 -0500 Subject: [PATCH] Update blank.yml --- .github/workflows/blank.yml | 39 ++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index a20a1c6..846ff30 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -3,22 +3,17 @@ name: Github Actions CI on: [push] jobs: - build: + build: + container: mcr.microsoft.com/dotnet/core/sdk:3.0.100-rc1-disco - container: mcr.microsoft.com/dotnet/core/sdk:3.0.100-rc1-disco - - - runs-on: ubuntu-latest - - - steps: + runs-on: ubuntu-latest + steps: - uses: actions/checkout@v1 - name: Initializacion message - run: echo Initializatin Blazor.Auth0 build! - + run: echo Initializatin Blazor.Auth0 build! - name: Build Blazor-Auth0-Shared project. run: | @@ -58,25 +53,29 @@ jobs: dotnet build examples/Examples.ServerSide + + - name: Setup Nuget.exe + uses: warrenbuckley/Setup-Nuget@v1 + + - name: Add GPR Source + env: # Or as an environment variable + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: nuget sources add -name "GPR" -Source https://nuget.pkg.github.com/henalbrod/index.json -Username henalbrod -Password $GITHUB_TOKEN + + - name: Publish Blazor-Auth0-Shared Nuget package. continue-on-error: true - env: # Or as an environment variable - NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} run: | - dotnet nuget push $HOME/Blazor-Auth0-Shared*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json + nuget push $HOME/Blazor-Auth0-Shared*.nupkg -Source "GPR" -SkipDuplicate - name: Publish Blazor-Auth0-ClientSide Nuget package. continue-on-error: true - env: # Or as an environment variable - NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} run: | - dotnet nuget push $HOME/Blazor-Auth0-ClientSide*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json + nuget push $HOME/Blazor-Auth0-ClientSide*.nupkg -Source "GPR" -SkipDuplicate - name: Publish Blazor-Auth0-ServerSide Nuget package. - continue-on-error: true - env: # Or as an environment variable - NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + continue-on-error: true run: | - dotnet nuget push $HOME/Blazor-Auth0-ServerSide*.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json + nuget push $HOME/Blazor-Auth0-ServerSide*.nupkg -Source "GPR" -SkipDuplicate