fix docs deploy to only push on master

This commit is contained in:
collerek
2020-11-09 14:11:55 +01:00
parent 76a541d0e4
commit 1fe16f7b2e
+1 -5
View File
@@ -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