Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7e364de

Browse files
committed
Only restrict to deploying on pushes to master in the python/peps repo
1 parent 113e490 commit 7e364de

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/deploy-gh-pages.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Deploy to GitHub Pages
22

3-
on:
4-
push:
5-
branches: [main]
6-
workflow_dispatch:
3+
on: [push, pull_request, workflow_dispatch]
74

85
jobs:
96
deploy-to-pages:
@@ -34,6 +31,8 @@ jobs:
3431
run: rm -r build/.doctrees/
3532

3633
- name: 🚀 Deploy to GitHub pages
34+
# This allows CI to build branches for testing
35+
if: github.ref == 'refs/heads/main'
3736
uses: JamesIves/[email protected]
3837
with:
3938
branch: gh-pages # The branch to deploy to.

0 commit comments

Comments
 (0)