-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: build multi-version documentation (#327)
* Build multi-version docs with 'mike' Signed-off-by: Dmytro Bondar <[email protected]> * Revert remote_branch option --------- Signed-off-by: Dmytro Bondar <[email protected]>
- Loading branch information
Dmytro Bondar
authored
Dec 3, 2024
1 parent
afcba8d
commit ba9b6c3
Showing
3 changed files
with
33 additions
and
21 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 |
---|---|---|
@@ -1,22 +1,29 @@ | ||
name: github-pages | ||
on: | ||
push: | ||
branches: | ||
- master | ||
branches: [master] | ||
tags: ["v*"] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
- uses: actions/cache@v4 | ||
with: | ||
key: ${{ github.ref }} | ||
path: .cache | ||
- run: pip install mkdocs-material | ||
- run: pip install pillow cairosvg | ||
- run: mkdocs gh-deploy --force | ||
|
||
- name: Install dependencies | ||
run: pip install mike mkdocs-material[imaging] mkdocs-minify-plugin | ||
|
||
- name: Publish documentation | ||
run: mike deploy --push --update-aliases ${{ github.ref_name }} latest | ||
env: | ||
GIT_COMMITTER_NAME: "github-actions[bot]" | ||
GIT_COMMITTER_EMAIL: "41898282+github-actions[bot]@users.noreply.github.com" |
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
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