gh-deploy #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: gh-deploy | |
on: | |
# push: | |
# branches: [ master ] | |
# pull_request: | |
# branches: [ master ] | |
# Manual only | |
workflow_dispatch: | |
jobs: | |
build: | |
name: MkDocs Gh Pages Automatic Deployment | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout main | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install Requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install mkdocs | |
- name: MkDocs gh-deploy | |
run: | | |
git pull | |
mkdocs gh-deploy |