diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index e02b0c2..0eb74d9 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -77,7 +77,7 @@ jobs: run: dotnet test --configuration Release deploy: - if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) + if: github.event_name == 'push' && github.ref == 'refs/heads/master' && startsWith(github.ref, 'refs/tags/') runs-on: macos-latest needs: [ validate_nuget, run_test ] steps: @@ -112,7 +112,7 @@ jobs: } create_github_release: - if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) + if: github.event_name == 'push' && github.ref == 'refs/heads/master' && startsWith(github.ref, 'refs/tags/') runs-on: macos-latest needs: [ deploy ] steps: