Skip to content

fix issues for github workflow 7 #push #33

fix issues for github workflow 7 #push

fix issues for github workflow 7 #push #33

Workflow file for this run

name: deploy-book
on:
push:
branches:
- main
env:
BASE_URL: /${{ github.event.repository.name }}
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy-book:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install System Dependencies
run: |
sudo apt-get update
sudo apt-get install -y wget libjpeg-dev zlib1g-dev libfreetype6-dev \
liblcms2-dev libwebp-dev libtiff-dev \
libopenjp2-7 libavif-dev libgeos-dev libarchive-dev
- name: Install and Configure Conda
run: |
wget -qO- https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
eval "$($HOME/miniconda/bin/conda shell.bash hook)"
conda init bash
- name: Create and Activate Conda Environment
shell: bash -l {0}
run: |
eval "$($HOME/miniconda/bin/conda shell.bash hook)"
conda create -n book python=3.11 -y
conda activate book
conda install -c conda-forge mayavi -y
- name: Install Dependencies
shell: bash -l {0}
run: |
eval "$($HOME/miniconda/bin/conda shell.bash hook)"
conda activate book
pip install -r requirements.txt
pip install -e .
pip install jupyter-book
- name: Build the book
shell: bash -l {0}
run: |
eval "$($HOME/miniconda/bin/conda shell.bash hook)"
conda activate book
rm -rf ./book/_build
jupyter-book build ./book
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GH_TOKEN }}
publish_dir: ./book/_build/html