fix docs deploy to only push on master
This commit is contained in:
6
.github/workflows/deploy-docs.yml
vendored
6
.github/workflows/deploy-docs.yml
vendored
@ -1,11 +1,7 @@
|
||||
name: Build Documentation using MkDocs
|
||||
# Controls when the action will run. Triggers the workflow on push or pull request
|
||||
# events but only for the master branch
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
pull_request:
|
||||
branches: [master]
|
||||
jobs:
|
||||
build:
|
||||
name: Build and Deploy Documentation
|
||||
@ -23,5 +19,5 @@ jobs:
|
||||
pip install mkdocs-material
|
||||
- name: Deploy
|
||||
run: |
|
||||
git pull
|
||||
git pull origin master
|
||||
mkdocs gh-deploy
|
||||
|
||||
Reference in New Issue
Block a user