Skip to content

Commit

Permalink
Add MkDocs deployment workflow for GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
kyaukyuai committed Mar 16, 2024
1 parent 108205c commit 9e3609e
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy MkDocs to GitHub Pages

on:
workflow_dispatch:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.10

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs mkdocs-material
- name: Deploy MkDocs
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
mkdocs gh-deploy --force
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9e3609e

Please sign in to comment.