|
15 | 15 | - name: Set up Python |
16 | 16 | uses: actions/setup-python@v4 |
17 | 17 | with: |
18 | | - python-version: '3.10' |
| 18 | + python-version: '3.11' |
19 | 19 |
|
20 | 20 | - name: Install dependencies |
21 | 21 | run: | |
|
24 | 24 |
|
25 | 25 | - name: Build documentation |
26 | 26 | run: | |
27 | | - # SPHINXOPTS="-W --keep-going -n" is used to turn warnings into errors |
| 27 | + # SPHINXOPTS="-W --keep-going" is used to turn warnings into errors |
28 | 28 | # but keep going, so we don't fail on the first one. |
29 | | - make -C docs html SPHINXOPTS="-W --keep-going -n" |
30 | | -
|
31 | | - - uses: actions/upload-artifact@v2 |
32 | | - with: |
33 | | - name: DocumentationHTML |
34 | | - path: docs/build/html/ |
35 | | - |
36 | | - # Publish built docs to gh-pages branch |
37 | | - - name: Commit documentation changes |
38 | | - # push docs only when a GitHub Release is made |
39 | | - if: github.event_name == 'release' && github.event.action == 'published' |
40 | | - run: | |
41 | | - git clone https://github.com/IMAP-Science-Operations-Center/imap_processing.git --branch gh-pages --single-branch gh-pages |
42 | | - cp -r docs/build/html/* gh-pages/ |
43 | | - cd gh-pages |
44 | | - git config --local user.email "action@github.com" |
45 | | - git config --local user.name "GitHub Action" |
46 | | - git add . |
47 | | - git commit -m "Update documentation" -a || true |
48 | | - # The above command will fail if no changes were present, so we ignore that. |
49 | | -
|
50 | | - - name: Publish docs |
51 | | - # push docs only when a GitHub Release is made |
52 | | - if: github.event_name == 'release' && github.event.action == 'published' |
53 | | - |
54 | | - uses: ad-m/github-push-action@master |
55 | | - with: |
56 | | - branch: gh-pages |
57 | | - directory: gh-pages |
58 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
| 29 | + make -C docs html SPHINXOPTS="-W --keep-going" |
0 commit comments