Skip to content

Commit 74d5e50

Browse files
committed
Update preview workflow
1 parent 6ca0311 commit 74d5e50

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
name: build docs
2020
no_output_timeout: 25m
2121
command: |
22-
pip install -r requirements.txt
23-
sphinx-build -b html -WT --keep-going spec build/draft -d doctrees
22+
pip install .[doc]
23+
make -C spec/ build
2424
- store_artifacts:
25-
path: build/draft
25+
path: spec/_build/
2626

2727
workflows:
2828
version: 2

.github/workflows/pages.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,6 @@ jobs:
8585
export SPHINXOPTS="-b html -WT --keep-going -d doctrees"
8686
make -C spec/ build
8787
88-
# Upload the build artifact:
89-
# - name: 'Upload build artifact'
90-
# uses: actions/upload-artifact@v2
91-
# if: ${{ github.event_name == 'pull_request'}}
92-
# with:
93-
# name: html
94-
# path: build/
95-
# if-no-files-found: error
96-
9788
# Configure Git:
9889
- name: 'Configure Git'
9990
run: |

.github/workflows/preview.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on: [status]
2+
jobs:
3+
circleci_artifacts_redirector_job:
4+
# Don't run Action on forks, and allow skipping CI
5+
if: "github.repository == 'honno/array-api'"
6+
runs-on: ubuntu-latest
7+
name: Run CircleCI artifacts redirector
8+
steps:
9+
- name: GitHub Action step
10+
id: step1
11+
uses: larsoner/circleci-artifacts-redirector-action@master
12+
with:
13+
repo-token: ${{ secrets.GITHUB_TOKEN }}
14+
artifact-path: 0/spec/_build/draft/index.html
15+
circleci-jobs: build_page
16+
job-title: Check the rendered docs here!

0 commit comments

Comments
 (0)