Skip to content

Commit 9e06242

Browse files
reset to "old" publish method -- more by hand.
1 parent 57d1881 commit 9e06242

File tree

1 file changed

+34
-15
lines changed

1 file changed

+34
-15
lines changed
Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy Sphinx documentation to Pages
1+
name: Publish Pages
22

33
on:
44
push:
@@ -9,20 +9,39 @@ concurrency:
99
cancel-in-progress: true
1010

1111
jobs:
12-
pages:
12+
build:
13+
1314
runs-on: ubuntu-latest
14-
environment:
15-
name: github-pages
16-
url: ${{ steps.deployment.outputs.page_url }}
17-
permissions:
18-
pages: write
19-
id-token: write
15+
strategy:
16+
matrix:
17+
python-version: [3.12]
18+
2019
steps:
21-
- id: deployment
22-
uses: sphinx-notes/pages@v3
20+
- uses: actions/checkout@v5
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v6
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install flake8 pytest
29+
if [ -f Sources/requirements.txt ]; then pip install -r Sources/requirements.txt; fi
30+
# - name: Lint with flake8
31+
# run: |
32+
# stop the build if there are Python syntax errors or undefined names
33+
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
35+
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
36+
#- name: Test with pytest
37+
# run: |
38+
# pytest
39+
- name: Build static site
40+
run: |
41+
cd ./Sources; make html
42+
43+
- name: Deploy
44+
uses: peaceiris/actions-gh-pages@v4
2345
with:
24-
documentation_path: .
25-
requirements_path: ./requirements.txt
26-
cache: true
27-
python_version: 3.12
28-
# checkout: false
46+
github_token: ${{ secrets.GITHUB_TOKEN }}
47+
publish_dir: ./Sources/build/html

0 commit comments

Comments
 (0)