Skip to content

Commit

Permalink
fingers crossed after I RTFM and found a decent example - trying GitH…
Browse files Browse the repository at this point in the history
…ub variables
  • Loading branch information
calebjenkins committed May 3, 2022
1 parent 31295df commit d5201f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:


- name: Push to Nuget
if: ${{ steps.detect_develop.outcome == 'success' }}
# if: ${{ steps.detect_develop.outcome == 'success' }}
if: ${{ github.ref == 'refs/heads/Develop' }}
# run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.FAKEAUTH_NUGET_KEY}}
run: dotnet nuget push FakeAuth.${{steps.get_version.outputs.RELEASE_VERSION}}-ci-${BUILD_NUMBER}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.FAKEAUTH_NUGET_KEY}}
8 changes: 5 additions & 3 deletions .github/workflows/main-ci-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ jobs:

- name: Pack
run: dotnet pack --configuration Release /p:Version=${{steps.get_version.outputs.RELEASE_VERSION}} --include-symbols --output .
if: ${{ steps.main_main.outcome == 'success' }}

if: ${{ github.ref == 'refs/heads/main' }}
#if: ${{ steps.main_main.outcome == 'success' }}

- name: Push to Nuget
run: dotnet nuget push FakeAuth.${{steps.get_version.outputs.RELEASE_VERSION}}.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{secrets.FAKEAUTH_NUGET_KEY}}
if: ${{ steps.main_main.outcome == 'success' }}
if: ${{ github.ref == 'refs/heads/main' }}
#if: ${{ steps.main_main.outcome == 'success' }}

0 comments on commit d5201f5

Please sign in to comment.