Skip to content

Commit

Permalink
fix ci for deploying docs on main branch push
Browse files Browse the repository at this point in the history
  • Loading branch information
chainyo committed Aug 17, 2023
1 parent 22089c3 commit d53714e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:

deploy-docs:
needs: run-tests
if: github.event_name == 'release'
if: (github.event_name == 'release') || (github.event_name == 'push' && github.ref == 'refs/heads/main')

runs-on: ubuntu-latest

Expand All @@ -99,7 +99,7 @@ jobs:

publish-package:
needs: deploy-docs
if: (github.event_name == 'release') || (github.event_name == 'push' && github.ref == 'refs/heads/main')
if: github.event_name == 'release'

runs-on: ubuntu-latest

Expand Down

0 comments on commit d53714e

Please sign in to comment.