8000 Add preview to array API page · lezcano/array-api@e14d9a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit e14d9a7

Browse files
committed
Add preview to array API page
1 parent 9730dd5 commit e14d9a7

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.circleci/config.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,20 @@ jobs:
1212
build_page:
1313
<<: *defaults
1414
steps:
15+
- checkout
1516
- attach_workspace:
1617
at: ~/
17-
1818
- run:
1919
name: build docs
2020
no_output_timeout: 25m
2121
command: |
22-
pip install -r requirements.txt
22+
sudo pip install -r requirements.txt
2323
sphinx-build -b html -WT --keep-going spec build/latest -d doctrees
2424
- store_artifacts:
2525
path: build/latest
26+
27+
workflows:
28+
version: 2
29+
default:
30+
jobs:
31+
- build_page

.github/workflows/preview.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
on: [status]
2+
jobs:
3+
circleci_artifacts_redirector_job:
4+
runs-on: ubuntu-latest
5+
name: Run CircleCI artifacts redirector
6+
steps:
7+
- name: GitHub Action step
8+
id: step1
9+
uses: larsoner/circleci-artifacts-redirector-action@master
10+
with:
11+
repo-token: ${{ secrets.GITHUB_TOKEN }}
12+
artifact-path: 0/build/latest/index.html
13+
circleci-jobs: build_page
14+
job-title: Check the rendered docs here!
15+
- name: Array API preview
16+
run: |
17+
curl --fail ${{ steps.step1.outputs.url }} | grep $GITHUB_SHA

0 commit comments

Comments
 (0)
0