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
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
jobs:
|
||||
build:
|
||||
name: Build and Deploy Documentation
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Master
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
jobs:
|
||||
build:
|
||||
name: Build and Deploy Documentation
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Master
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.x'
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install mkdocs-material
|
||||
- name: Deploy
|
||||
run: |
|
||||
- name: Deploy
|
||||
run: |
|
||||
git pull origin master
|
||||
mkdocs gh-deploy
|
||||
|
||||
Reference in New Issue
Block a user