Deploy to GitHub Pages #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |