Skip to content

Commit

Permalink
Only restrict to deploying on pushes to master in the python/peps r…
Browse files Browse the repository at this point in the history
…epo (#1996)
  • Loading branch information
AA-Turner authored Jan 21, 2022
1 parent 113e490 commit fb046e1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deploy-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Deploy to GitHub Pages

on:
push:
branches: [main]
workflow_dispatch:
on: [push, pull_request, workflow_dispatch]

jobs:
deploy-to-pages:
Expand Down Expand Up @@ -34,6 +31,8 @@ jobs:
run: rm -r build/.doctrees/

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

0 comments on commit fb046e1

Please sign in to comment.