Skip to content

Commit b1f503e

Browse files
committed
updated github actions to deploy mkdocs gh-pages
1 parent 9f344e1 commit b1f503e

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,25 @@ jobs:
6262
with:
6363
user: __token__
6464
password: ${{ secrets.PYPI_API_TOKEN }}
65-
verbose: true
65+
verbose: true
66+
67+
docs-deploy:
68+
name: Deploy MkDocs to GitHub Pages
69+
runs-on: ubuntu-latest
70+
needs: unittest
71+
permissions:
72+
contents: write
73+
74+
steps:
75+
- uses: actions/checkout@v4
76+
77+
- name: Set up Python
78+
uses: actions/setup-python@v5
79+
with:
80+
python-version: '3.x'
81+
82+
- name: Install docs dependencies
83+
run: pip install mkdocs-material pymdown-extensions
84+
85+
- name: Deploy docs
86+
run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)