Skip to content

Commit

Permalink
fix: sphinx deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
samholt committed Dec 27, 2024
1 parent 385373d commit 8d2bd84
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@ on:
push:
branches: [main, release]


jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python environment and dependencies
run: |
apt-get update -y && apt-get install -y python3 python3-pip python3-venv pandoc gcc
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install -r docs/requirements.txt
- name: Build HTML
uses: ammaraskar/[email protected]
with:
pre-build-command: "apt-get update -y && apt-get install -y pandoc gcc"
pre-build-command: ". venv/bin/activate"
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand All @@ -24,4 +30,4 @@ jobs:
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
publish_dir: docs/build/html

0 comments on commit 8d2bd84

Please sign in to comment.