Skip to content

Merge pull request #52 from ml4sts/21-action-updates #26

Merge pull request #52 from ml4sts/21-action-updates

Merge pull request #52 from ml4sts/21-action-updates #26

Workflow file for this run

name: deploydocs
# Only run this when the main branch changes
on:
push:
branches:
- main
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
build-book:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Pages
uses: actions/configure-pages@v5
- uses: actions/setup-node@v6
with:
node-version: 18.x
# Install dependencies
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -e . --no-deps --force-reinstall
# Build the book
- name: Build the docs
run: |
cd docs
make html
pwd
ls -la build
- name: Upload static files as artifact
uses: actions/upload-pages-artifact@v4
with:
path: docs/build/html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4