From d5201f5beed930cffa3f7510369b622b95b869cc Mon Sep 17 00:00:00 2001 From: calebjenkins Date: Tue, 3 May 2022 16:22:03 -0500 Subject: [PATCH] fingers crossed after I RTFM and found a decent example - trying GitHub variables --- .github/workflows/dev-ci.yml | 3 ++- .github/workflows/main-ci-test-publish.yml | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dev-ci.yml b/.github/workflows/dev-ci.yml index 6568ef2..f8d8caf 100644 --- a/.github/workflows/dev-ci.yml +++ b/.github/workflows/dev-ci.yml @@ -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}} diff --git a/.github/workflows/main-ci-test-publish.yml b/.github/workflows/main-ci-test-publish.yml index 7c94e65..3790a86 100644 --- a/.github/workflows/main-ci-test-publish.yml +++ b/.github/workflows/main-ci-test-publish.yml @@ -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' }} \ No newline at end of file + if: ${{ github.ref == 'refs/heads/main' }} + #if: ${{ steps.main_main.outcome == 'success' }} \ No newline at end of file