Skip to content

Commit

Permalink
Refactor CD pipeline to include version tags in the trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
hootanht committed Sep 12, 2024
1 parent feb16ef commit 7482d0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7482d0a

Please sign in to comment.