Only restrict to deploying on pushes to `master` in the python/peps repo (#1996)

This commit is contained in:
Adam Turner 2022-01-21 11:37:08 +00:00 committed by GitHub
parent 113e490701
commit fb046e16c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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.