Skip to content

Commit

Permalink
cleaning up and finalizing support for push release to nuget.org
Browse files Browse the repository at this point in the history
  • Loading branch information
ebekker committed Oct 9, 2019
1 parent 24188b7 commit e6323ae
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
path: src/Zyborg.AWS.Lambda.Kerberos/bin/Release


push-preview-nuget:
push-nuget-preview:
needs: build
if: (github.event_name == 'create')
runs-on: ubuntu-16.04
Expand All @@ -80,7 +80,6 @@ jobs:
## https://help.github.com/en/articles/configuring-nuget-for-use-with-github-package-registry
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#run: nuget sources Add -Name "GPR" \
run: |
mono $NUGET_EXE sources Add -Name "GPR" \
-Source "https://nuget.pkg.github.com/ebekker/index.json" \
Expand All @@ -90,9 +89,8 @@ jobs:
- name: publish
run: mono $NUGET_EXE push package/Zyborg.AWS.Lambda.Kerberos*.nupkg -Source GPR
#run: dotnet nuget push Bkkr.GitHub.TestActionsAndRegistry.nupkg --source GPR

push-release-nuget:
push-nuget-release:
needs: build
if: (github.event_name == 'release')
runs-on: ubuntu-16.04
Expand All @@ -107,7 +105,7 @@ jobs:
#uses: warrenbuckley/Setup-Nuget@v1
uses: olegtarasov/download-nuget@v1

- name: would do
shell: pwsh
run: |
Write-Host "This is where we push to NUGET.ORG"
- name: publish
env:
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
run: mono $NUGET_EXE push package/Zyborg.AWS.Lambda.Kerberos*.nupkg -ApiKey $NUGET_TOKEN

0 comments on commit e6323ae

Please sign in to comment.