Skip to content

#push with installs for mayavi #5

#push with installs for mayavi

#push with installs for mayavi #5

Workflow file for this run

name: deploy-book
on:
push:
branches:
- main # Adjust branch name if necessary
env:
BASE_URL: /${{ github.event.repository.name }}
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy-book:
if: |
github.repository == 'm3-learning/Predicting-Pulsed-Laser-Deposition-SrTiO3-Homoepitaxy-Growth-Dynamics-using-RHEED' &&
contains(github.event.head_commit.message, '#push')
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
libgl1-mesa-dev \
libglu1-mesa-dev \
libxt-dev \
libxext-dev \
libxrender-dev \
libsm-dev
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Cache Python dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Build the book
run: |
rm -rf ./book/_build
jupyter-book build ./book
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/_build/html