Merge pull request #77 from jan-janssen/structuretoolkit #10
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: Deploy | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
auto-update-conda: true | |
python-version: "3.11" | |
auto-activate-base: false | |
- name: Install Jupyterbook | |
shell: bash -l {0} | |
run: | | |
conda install -y -c conda-forge jupyter-book | |
jupyter-book build . --path-output public | |
- run: mv public/_build/html public_html | |
- run: touch public_html/.nojekyll | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: public_html # The folder the action should deploy. | |
CLEAN: true |