File tree Expand file tree Collapse file tree 3 files changed +38
-17
lines changed Expand file tree Collapse file tree 3 files changed +38
-17
lines changed Original file line number Diff line number Diff line change
1
+ name : Docs Build
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v4
10
+ - uses : actions/setup-python@v5
11
+ - name : Install Dependencies
12
+ run : |
13
+ python -m pip install -r docs/requirements.txt
14
+ - name : Build Docs
15
+ run : |
16
+ cd docs
17
+ make html
18
+ - name : Upload Artifact
19
+ uses : actions/upload-artifact@v4
20
+ with :
21
+ name : docs-build
22
+ path : docs/_build/html
Original file line number Diff line number Diff line change 1
- name : Docs
2
- on : [push, pull_request]
1
+ name : Docs Deploy
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
3
8
jobs :
4
- docs :
9
+ deploy :
5
10
runs-on : ubuntu-latest
6
- strategy :
7
- fail-fast : false
8
11
environment :
9
- name : docs-build-and- deploy
12
+ name : docs-deploy
10
13
steps :
11
14
- uses : actions/checkout@v4
12
- - uses : actions/setup-python@v5
13
- - name : Install Dependencies
14
- run : |
15
- python -m pip install -r docs/requirements.txt
16
-
17
- - name : Build Docs
18
- run : |
19
- cd docs
20
- make html
15
+ - name : Download Artifact
16
+ uses : dawidd6/action-download-artifact@v2
17
+ with :
18
+ workflow : docs-build.yml
19
+ name : docs-build
20
+ path : docs/_build/html
21
21
22
22
# Note, the gh-pages deployment requires setting up a SSH deploy key.
23
23
# See
24
24
# https://github.com/JamesIves/github-pages-deploy-action/tree/dev#using-an-ssh-deploy-key-
25
25
- name : Deploy
26
26
uses : JamesIves/github-pages-deploy-action@v4
27
- if : ${{ github.ref == 'refs/heads/main' }}
28
27
with :
29
28
folder : docs/_build/html
30
29
ssh-key : ${{ secrets.DEPLOY_KEY }}
Original file line number Diff line number Diff line change 5
5
## Minor Changes
6
6
7
7
- Add [ HTML documentation] ( https://data-apis.org/array-api-compat/ ) . Includes
8
- new documentation on the [ module scope] ( scope ) and new [ developer
8
+ new documentation on the [ scope of the package ] ( scope ) and new [ developer
9
9
documentation] ( dev/index.md ) .
10
10
11
11
- Fix ` array_api_compat.numpy.asarray(torch.Tensor) ` to return a NumPy array.
You can’t perform that action at this time.
0 commit comments