Skip to content

Commit

Permalink
Add workflow to auto deploy with mkdocs gh-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Aug 7, 2024
1 parent 9d94408 commit a4dc57e
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/mkdocs-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Deploy MkDocs Site

on:
push:
branches:
- main
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install MkDocs and Deploy Dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material mkdocs-gh-deploy
- name: Deploy MkDocs Site
run: mkdocs gh-deploy --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a4dc57e

Please sign in to comment.