Manual HTML Deploy #6
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: Manual HTML Deploy | |
on: [workflow_dispatch] | |
jobs: | |
generate_html: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
pip install ghp-import | |
pip install jupyter-book | |
pip install myst-nb | |
pip install astroid | |
pip install nbval | |
#pip install bs4 | |
#pip install lxml | |
## test to bypass the jupyter-book lower version | |
pip install jsonschema==4.6.0 | |
PATH="${PATH}:${HOME}/.local/bin" | |
- name: Build HTML | |
run: | | |
git fetch | |
git checkout origin/gh-storage -- notebooks/ | |
jupyter-book build . | |
# - name: Execute JDAVIZ placeholder substitution | |
# run: | | |
# cp jdaviz_placeholder_new.png _build/html | |
# ./placeholder.sh | |
# Push the book's HTML to github-pages | |
- name: GitHub Pages action | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_build/html |