From 67e0efced08cfb70df52173adceea60ab43e05b6 Mon Sep 17 00:00:00 2001 From: Simon G Date: Tue, 24 Sep 2019 14:56:56 +0200 Subject: [PATCH] - remove nuget and add github job --- .github/workflows/deploy.yml | 38 ++++++++++++++++++------------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3e362e8..b978e6b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,29 +3,29 @@ name: Deploy on: [release] jobs: - nuget: - name: NuGet - runs-on: windows-latest - - steps: - - name: Deploy to NuGet Gallery - env: - NUGET_KEY: ${{ secrets.NUGET_KEY }} - run: - dotnet pack -c Release - cd bin\Release - dotnet nuget push LightweightIocContainer.*.nupkg -k NUGET_KEY -s https://api.nuget.org/v3/index.json - -# github: -# name: GitHub +# nuget: +# name: NuGet # runs-on: windows-latest # steps: -# - name: Deploy to GitHub Package Registry +# - name: Deploy to NuGet Gallery # env: -# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# NUGET_KEY: ${{ secrets.NUGET_KEY }} # run: # dotnet pack -c Release -# nuget sources Add -Name "GithubPackageRegistry" -Source "https://nuget.pkg.github.com/OWNER/index.json" -UserName SimonG96 -Password GITHUB_TOKEN # cd bin\Release -# dotnet nuget push LightweightIocContainer.*.nupkg -Source "GithubPackageRegistry" +# dotnet nuget push LightweightIocContainer.*.nupkg -k NUGET_KEY -s https://api.nuget.org/v3/index.json + + github: + name: GitHub + runs-on: windows-latest + + steps: + - name: Deploy to GitHub Package Registry + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: + dotnet pack -c Release + nuget sources Add -Name "GithubPackageRegistry" -Source "https://nuget.pkg.github.com/OWNER/index.json" -UserName SimonG96 -Password GITHUB_TOKEN + cd bin\Release + dotnet nuget push LightweightIocContainer.*.nupkg -Source "GithubPackageRegistry"