Skip to content

Update GH action upload artifact to v4 #34

Update GH action upload artifact to v4

Update GH action upload artifact to v4 #34

Workflow file for this run

name: Deploy Jupyter Book to GitHub Pages
on:
push:
branches:
- main # Change this if your main branch has a different name
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip
- name: Install dependencies
run: |
pip install -U pip
pip install -r requirements.txt
- name: Build the Jupyter Book
run: jupyter-book build --builder dirhtml TeSS_docs/
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: "_build/dirhtml"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
#run: |
# ghp-import -n -p -f TeSS_docs/_build/dirhtml