Skip to content

Commit f3f3e4c

Browse files
Move conditional for deployment to job level
1 parent 5d15e05 commit f3f3e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
deploy:
3333
runs-on: ubuntu-latest
3434
needs: test
35+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
3536
environment:
3637
name: github-pages
3738
url: ${{ steps.deployment.outputs.page_url }}
@@ -46,6 +47,5 @@ jobs:
4647
with:
4748
path: coverage
4849
- name: Deploy to GitHub Pages
49-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
5050
id: deployment
5151
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)