Skip to content

fix build

fix build #2

Workflow file for this run

name: github pages
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '0 0 * * 1'
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
env:
PR_PATH: pull/${{github.event.number}}
steps:
- name: Comment on PR
uses: hasura/[email protected]
if: github.ref != 'refs/heads/master'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
number: ${{ github.event.number }}
id: deploy-preview
message: "Starting deployment of preview ⏳..."
- name: Checkout website repo
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build website
run: |
make -C . html
- name: Upload HTML
uses: actions/upload-artifact@v1
with:
name: DocumentationHTML
path: _build/html/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html
# cname: ${{ env.DOMAIN # TODO: set this if you're using a custom domain.