-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Support new way AnyBody 8.0.3 stores it's registry keys (#112)
* fix: Support the new way AnyBody 8.0.1 stores the registry keys * Run ruff/isort * Update version * Update docs build environment * update lock file * Add pytest to docs build environmenton * fix typo * Add anyboydcon as dependency when testing on windows
- Loading branch information
Showing
6 changed files
with
6,738 additions
and
1,523 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 |
---|---|---|
|
@@ -14,48 +14,92 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
sphinx-build: | ||
build-latest-docs: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install mamba | ||
uses: mamba-org/setup-micromamba@main | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
environment-file: docs/environment.yml | ||
|
||
- name: Build anypytools | ||
shell: bash -l {0} | ||
run: pip install . | ||
environments: docs | ||
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }} | ||
activate-environment: docs | ||
|
||
- name: Build Documentation | ||
shell: bash -l {0} | ||
run: | | ||
set -e | ||
cd docs | ||
make html-dev | ||
sphinx-build -M html . _build -W --keep-going -a -t DEV_BUILD | ||
cd .. | ||
mkdir -p public/dev | ||
cp -rT docs/_build/html public/dev | ||
- name: Build last tagged version | ||
if: github.ref == 'refs/heads/master' | ||
shell: bash -l {0} | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: dev-version | ||
path: docs/_build/html | ||
|
||
|
||
|
||
build-tagged-docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
# - name: Checkout last tagged version | ||
# run: | | ||
# git checkout $(git describe --tags `git rev-list --tags --max-count=1`); | ||
|
||
- uses: prefix-dev/[email protected] | ||
with: | ||
environments: docs | ||
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'master' }} | ||
activate-environment: docs | ||
|
||
- name: Build Documentation | ||
run: | | ||
git checkout $(git describe --tags `git rev-list --tags --max-count=1`); | ||
cd docs | ||
make clean | ||
make html | ||
cd .. | ||
cp -rT docs/_build/html public | ||
- name: Deploy 🚀 | ||
if: github.ref == 'refs/heads/master' | ||
uses: peaceiris/actions-gh-pages@v3 | ||
sphinx-build -M html . _build -a | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: tagged-version | ||
path: docs/_build/html | ||
|
||
|
||
prepare-pages: | ||
needs: [build-latest-docs, build-tagged-docs] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | ||
external_repository: AnyBody-Research-Group/anypytools-docs | ||
publish_branch: gh-pages | ||
publish_dir: ./public | ||
name: tagged-version | ||
path: public | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: dev-version | ||
path: public/dev | ||
- uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: public | ||
|
||
deploy: | ||
needs: prepare-pages | ||
if: github.ref == 'refs/heads/master' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pages: write | ||
id-token: write | ||
|
||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
|
||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||
|
||
|
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.