Skip to content

Commit 65d5615

Browse files
committed
CI: add preview builds via CircleCI html build and GHA link redirector
1 parent 0db7de0 commit 65d5615

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

Diff for: .circleci/config.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
version: 2
2+
3+
# Aliases to reuse
4+
_defaults: &defaults
5+
docker:
6+
# CircleCI maintains a library of pre-built images
7+
# documented at https://circleci.com/docs/2.0/circleci-images/
8+
- image: cimg/python:3.10.2
9+
working_directory: ~/repo
10+
11+
jobs:
12+
build_page:
13+
<<: *defaults
14+
steps:
15+
- checkout
16+
- attach_workspace:
17+
at: ~/
18+
- run:
19+
name: build docs
20+
no_output_timeout: 25m
21+
command: |
22+
pip install -r requirements.txt
23+
sphinx-build -b html -WT --keep-going spec build/draft -d doctrees
24+
- store_artifacts:
25+
path: build/draft
26+
27+
workflows:
28+
version: 2
29+
default:
30+
jobs:
31+
- build_page

Diff for: .github/workflows/preview.yml

+16
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 == 'data-apis/dataframe-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/build/draft/index.html
15+
circleci-jobs: build_page
16+
job-title: Check the rendered docs here!

0 commit comments

Comments
 (0)