Skip to content

Commit

Permalink
Refactor CD pipeline to include version tags in the trigger and remov…
Browse files Browse the repository at this point in the history
…e unnecessary tag fetching step
  • Loading branch information
hootanht committed Sep 12, 2024
1 parent 7482d0a commit e1a5d75
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 e1a5d75

Please sign in to comment.