Skip to content

Commit

Permalink
Add conditions for deploy (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
KiranReddy0808 authored Nov 4, 2024
1 parent 41bacc9 commit c3a4776
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ concurrency:
jobs:
# Single deploy job since we're just deploying
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
python-version: ["3.12"]
Expand Down Expand Up @@ -53,3 +54,10 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
force_orphan: true

deploy-ignore:
if: ${{ github.event.workflow_run.conclusion != 'success' }}
runs-on: ubuntu-latest
steps:
- name: Skip
run: echo "Skipping deployment as Lint Pytest workflow run was not successful."

0 comments on commit c3a4776

Please sign in to comment.