fix docs deploy to only push on master

This commit is contained in:
collerek
2020-11-09 14:13:05 +01:00
parent 1fe16f7b2e
commit b9040c5105

View File

@ -1,23 +1,23 @@
name: Build Documentation using MkDocs name: Build Documentation using MkDocs
on: on:
push: push:
branches: [master] branches: [ master ]
jobs: jobs:
build: build:
name: Build and Deploy Documentation name: Build and Deploy Documentation
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Master - name: Checkout Master
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set up Python 3.7 - name: Set up Python 3.7
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: '3.x' python-version: '3.x'
- name: Install dependencies - name: Install dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install mkdocs-material pip install mkdocs-material
- name: Deploy - name: Deploy
run: | run: |
git pull origin master git pull origin master
mkdocs gh-deploy mkdocs gh-deploy