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