fix docs deploy to only push on master
This commit is contained in:
36
.github/workflows/deploy-docs.yml
vendored
36
.github/workflows/deploy-docs.yml
vendored
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user