-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ljzd-PRO
committed
Dec 2, 2023
1 parent
0233fa1
commit 087e554
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Documentation | ||
on: | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "ktoolbox/**" | ||
- ".github/actions/setup-python/**" | ||
- ".github/workflows/docs.yml" | ||
- "pyproject.toml" | ||
- "docs/**" | ||
- "mkdocs.yml" | ||
|
||
jobs: | ||
documentation: | ||
name: Build documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python environment | ||
uses: ./.github/actions/setup-python | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Build documentation | ||
run: | | ||
mkdocs build --clean | ||
mkdocs --version | ||
- name: Upload to GitHub Pages | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: site | ||
|
||
- name: Deploy to GitHub Pages | ||
uses: actions/deploy-pages@v2 |