Skip to content

Commit 8197dfd

Browse files
authored
Update GitHub Actions workflow for documentation
1 parent f526c06 commit 8197dfd

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

.github/workflows/doc.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,26 @@ jobs:
1111
build-manual:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v4
1515
with: { submodules: recursive }
16-
- uses: conda-incubator/setup-miniconda@v2
17-
with: { miniforge-variant: "Mambaforge", miniforge-version: "latest" }
16+
- uses: conda-incubator/setup-miniconda@v3
17+
with:
18+
use-mamba: true
19+
channels: conda-forge
20+
channel-priority: true
1821
- name: Install pplpy dependencies
1922
shell: bash -l {0}
2023
run: |
21-
mamba env update --quiet -n test -f environment.yml
24+
conda env update --quiet -n test -f environment.yml
2225
conda list
2326
- name: Install pplpy
2427
shell: bash -l {0}
2528
run: |
2629
pip install --verbose --no-index --no-build-isolation .
2730
- name: Install test dependencies
31+
shell: bash -l {0}
2832
run: |
29-
mamba env update --quiet -n test -f environment.test.yml
33+
conda env update --quiet -n test -f environment.test.yml
3034
conda list
3135
- name: Build documentation
3236
shell: bash -l {0}
@@ -41,10 +45,10 @@ jobs:
4145
# overview but does not generate pages for .pyx modules.
4246
# We also ignore a url that is generated by sphinx itself (version 7.2.6).
4347
linkchecker --check-extern --ignore-url='_modules/|https://www.sphinx-doc.org/' http://localhost:8880
44-
- uses: JamesIves/github-pages-deploy-action@3.7.1
48+
- uses: JamesIves/github-pages-deploy-action@v4
4549
with:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
BRANCH: gh-pages
48-
FOLDER: html/pplpy/
49-
TARGET_FOLDER: docs/
50+
token: ${{ secrets.GITHUB_TOKEN }}
51+
branch: gh-pages
52+
folder: html/pplpy/
53+
target-folder: docs/
5054
if: ${{ github.event_name == 'push' }}

0 commit comments

Comments
 (0)