Skip to content

Add github actions workflow for mkdocs #9

Add github actions workflow for mkdocs

Add github actions workflow for mkdocs #9

Workflow file for this run

# Deploy mkdocs site to GitHub Pages
name: gh-pages deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Deploy using mkdocs gh-deploy
run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
git remote set-url origin https://x-access-token:${{ secrets.DEPLOY_TOKEN }}@github.com/$GITHUB_REPOSITORY
mkdocs gh-deploy -c -m "Rebuild"