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
|
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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
pull_request:
|
|
||||||
branches: [master]
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build and Deploy Documentation
|
name: Build and Deploy Documentation
|
||||||
@ -23,5 +19,5 @@ jobs:
|
|||||||
pip install mkdocs-material
|
pip install mkdocs-material
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
git pull
|
git pull origin master
|
||||||
mkdocs gh-deploy
|
mkdocs gh-deploy
|
||||||
|
|||||||
Reference in New Issue
Block a user