Merge pull request #34 from brian-rose/dependabot/github_actions/peac… #69
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
name: deploy-site | |
# Only run this when the main branch changes | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy-site: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install -r requirements.txt | |
- name: Build with Sphinx | |
run: | | |
make -j4 html | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_build/html | |
enable_jekyll: false |