Only restrict to deploying on pushes to `master` in the python/peps repo (#1996)
This commit is contained in:
parent
113e490701
commit
fb046e16c6
|
@ -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:
|
||||
|
@ -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/github-pages-deploy-action@4.1.1
|
||||
with:
|
||||
branch: gh-pages # The branch to deploy to.
|
||||
|
|
Loading…
Reference in New Issue