-
Notifications
You must be signed in to change notification settings - Fork 13
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
Showing
2 changed files
with
18 additions
and
16 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 |
---|---|---|
|
@@ -41,48 +41,46 @@ jobs: | |
run: ./integration-tests/run.sh | ||
|
||
publish_mkdocs_latest: | ||
if: github.event_name == 'push' and contains(github.ref, 'refs/tags/') | ||
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
runs-on: ubuntu-latest | ||
needs: build | ||
env: | ||
GIT_COMMITTER_NAME: mkdocs-mike | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.10 | ||
python-version: "3.10" | ||
cache: 'pip' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install mkdocs singledispatch mkdocs-material mike | ||
- name: Deploy documentation with mike | ||
run: mike deploy ${{github.ref_name}} latest | ||
- name: Push gh-pages branch | ||
run: git push origin gh-pages:gh-pages | ||
run: | | ||
git config user.name mkdocs-mike | ||
git config user.email [email protected] | ||
git fetch origin gh-pages | ||
mike deploy -p --rebase ${{github.ref_name}} latest | ||
publish_mkdocs_wip: | ||
if: github.event_name == 'push' and contains(github.ref, 'main') | ||
if: github.event_name == 'push' && contains(github.ref, 'main') | ||
runs-on: ubuntu-latest | ||
needs: build | ||
env: | ||
GIT_COMMITTER_NAME: mkdocs-mike | ||
GIT_COMMITTER_EMAIL: [email protected] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: 3.10 | ||
python-version: "3.10" | ||
cache: 'pip' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install mkdocs singledispatch mkdocs-material mike | ||
- name: Deploy documentation with mike | ||
run: mike deploy wip | ||
- name: Push gh-pages branch | ||
run: git push origin gh-pages:gh-pages | ||
run: | | ||
git config user.name mkdocs-mike | ||
git config user.email [email protected] | ||
git fetch origin gh-pages | ||
mike deploy -p --rebase wip |
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,4 @@ | ||
mkdocs | ||
singledispatch | ||
mkdocs-material | ||
mike |