Skip to content

Commit 788b7f9

Browse files
committed
Use latest macos to build doc
1 parent 7c8023c commit 788b7f9

File tree

1 file changed

+40
-6
lines changed

1 file changed

+40
-6
lines changed

.github/workflows/publish-docs-on-release.yml

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,43 @@ on:
77

88
jobs:
99
docs:
10-
permissions:
11-
contents: write
12-
uses: Billingegroup/release-scripts/.github/workflows/_publish-docs-on-release.yml@v0
13-
with:
14-
project: diffpy.pdffit2
15-
c_extension: true
10+
defaults:
11+
run:
12+
shell: bash -l {0}
13+
14+
runs-on: macos-latest
15+
steps:
16+
- name: Check out diffpy.pdffit2
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0 # Fetches branches and tags
20+
21+
- name: Initialize miniconda
22+
uses: conda-incubator/setup-miniconda@v3
23+
with:
24+
activate-environment: build
25+
auto-update-conda: true
26+
environment-file: environment.yml
27+
auto-activate-base: false
28+
python-version: 3.13
29+
30+
- name: Conda config
31+
run: >-
32+
conda config --set always_yes yes
33+
--set changeps1 no
34+
35+
- name: Install diffpy.pdffit2 and docs requirements
36+
run: |
37+
conda install --file requirements/conda.txt
38+
conda install --file requirements/docs.txt
39+
conda install --file requirements/build.txt
40+
python -m pip install . --no-deps
41+
42+
- name: build documents
43+
run: make -C doc html
44+
45+
- name: Deploy
46+
uses: peaceiris/actions-gh-pages@v4
47+
with:
48+
github_token: ${{ secrets.GITHUB_TOKEN }}
49+
publish_dir: ./doc/build/html

0 commit comments

Comments
 (0)