Skip to content

Deploy to GitHub Pages #78

Deploy to GitHub Pages

Deploy to GitHub Pages #78

# Build and deploy pages to the gh-pages branch
name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_run:
workflows: [Update latest release links]
types:
- completed
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Build
run: |
pip install -r requirements.txt
make html
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: _build/html # The folder the action should deploy.