activate the current environment #4
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
name: Generate Pages | |
on: | |
push: | |
branches: | |
- update-docs | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
- name: install deps | |
run: | | |
uv sync --extra docs | |
source .venv/bin/activate | |
python -m ipykernel install --name daisy_env --user | |
- name: parse notebooks | |
run: jupytext --to notebook --execute ./docs/source/notebooks/tutorial.py --output ./docs/source/notebooks/tutorial.ipynb | |
- name: remove notebook scripts | |
run: rm ./docs/source/notebooks/*.py | |
- name: Build and Commit | |
uses: sphinx-notes/pages@v3 | |
with: | |
documentation_path: ./docs/source | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: gh-pages |