-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into readme-updates
- Loading branch information
Showing
16 changed files
with
227 additions
and
110 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 |
---|---|---|
|
@@ -85,7 +85,7 @@ jobs: | |
publish_docs: | ||
needs: update_docs | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'push' && (github.ref == 'refs/heads/stable') | ||
if: github.event_name == 'push' && (github.ref == 'refs/heads/stable' || github.ref == 'refs/heads/dev') | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
|
@@ -102,7 +102,22 @@ jobs: | |
run: | | ||
pip install poetry | ||
poetry install --only=docs | ||
- run: poetry run mkdocs gh-deploy --force | ||
- name: Publish docs (stable branch) | ||
if: github.ref == 'refs/heads/stable' | ||
run: | | ||
mkdocs build -f mkdocs.yml | ||
mkdocs gh-deploy --force --dir=site | ||
- name: Publish docs (dev branch) | ||
if: github.ref == 'refs/heads/dev' | ||
run: | | ||
mkdocs build -f mkdocs-dev.yml -d site/dev_branch | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git checkout gh-pages | ||
mv site/dev_branch . | ||
git add dev_branch | ||
git commit -m "Update dev documentation" | ||
git push | ||
publish_code: | ||
needs: update_docs | ||
runs-on: ubuntu-latest | ||
|
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
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
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
Oops, something went wrong.