Skip to content

Commit

Permalink
Merge pull request #178 from kyaukyuai/feat/mkdocs
Browse files Browse the repository at this point in the history
Add MkDocs deployment workflow for GitHub Pages
  • Loading branch information
kyaukyuai authored Mar 16, 2024
2 parents 108205c + 9e3609e commit d7ea4a8
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 d7ea4a8

Please sign in to comment.