Skip to content

Commit b76ce14

Browse files
authoredJul 11, 2024··
Update documentation.yml
1 parent f26d95f commit b76ce14

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed
 

‎.github/workflows/documentation.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Deploy Sphinx documentation to Pages
44
on:
55
# Runs on pushes targeting the default branch
66
push:
7-
branches: [$default-branch]
7+
branches: main
88

99
# Allows you to run this workflow manually from the Actions tab
1010
workflow_dispatch:
@@ -28,13 +28,21 @@ jobs:
2828
name: github-pages
2929
url: ${{ steps.deployment.outputs.page_url }}
3030
runs-on: ubuntu-latest
31-
container: ghcr.io/sphinx-doc/sphinx
3231
steps:
3332
- name: Checkout
3433
uses: actions/checkout@v4
34+
- name: Setup Python
35+
uses: actions/setup-python@v5
36+
with:
37+
python-version: '3.12'
38+
check-latest: true
39+
cache: 'pip'
40+
cache-dependency-path: './docs/requirements.txt'
41+
- name: Install dependencies
42+
run: |
43+
pip install -r ./docs/requirements.txt
3544
- name: Build documentation
3645
run: |
37-
pip install -r requirements.txt
3846
sphinx-build -M html ./docs/source _build/
3947
- name: Setup Pages
4048
uses: actions/configure-pages@v5

0 commit comments

Comments
 (0)
Please sign in to comment.