Skip to content

Commit

Permalink
Put entire job into conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
n8henrie committed Sep 11, 2022
1 parent 8d7093b commit fdff9b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
path: docs/_build/html

deploy:
if: github.ref == 'refs/heads/master'
needs: build
runs-on: ubuntu-22.04
permissions:
Expand All @@ -37,7 +38,6 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy docs
if: github.ref == 'refs/heads/master'
id: deployment
uses: actions/deploy-pages@v1
with:
Expand Down

0 comments on commit fdff9b9

Please sign in to comment.