Skip to content

Update deploy.yaml for Ubuntu 22.04 runner #64

Update deploy.yaml for Ubuntu 22.04 runner

Update deploy.yaml for Ubuntu 22.04 runner #64

Workflow file for this run

name: Deploy gh-pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt update
sudo apt install python3
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
python3 -m pip install sphinx sphinx_rtd_theme
- name: Build
run: make html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
publish_branch: gh-pages
commit_message: ${{ github.event.head_commit.message }}