Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ version: 2.1
jobs:
build:
docker:
- image: cimg/python:3.14
- image: cimg/node:25.9.0
steps:
- checkout
- run:
name: Build website
name: build_website
command: make html
- store_artifacts:
path: _build/html/
25 changes: 25 additions & 0 deletions .github/workflows/circleci_redirect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
on: [status]

permissions: read-all

jobs:
circleci_artifacts_redirector_job:
runs-on: ubuntu-latest
if: "${{ github.event.context == 'ci/circleci: build_website' }}"
permissions:
statuses: write
name: Run CircleCI artifacts redirector
steps:
- name: GitHub Action step
id: step1
uses: scientific-python/circleci-artifacts-redirector-action@5d358ff96e96429a5c64a969bb4a574555439f4f # v1.3.1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
api-token: ${{ secrets.CIRCLECI_ARTIFACT_REDIRECTOR_TOKEN }}
artifact-path: 0/_build/html
circleci-jobs: build_website
job-title: Check the rendered docs here!
- name: Check the URL
if: github.event.status != 'pending'
run: |
curl --fail ${{ steps.step1.outputs.url }} | grep $GITHUB_SHA
17 changes: 1 addition & 16 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Build Check & Preview
name: PR Build Check

on:
pull_request:
Expand All @@ -25,18 +25,3 @@ jobs:
cache: npm

- run: make check

# continue-on-error because fork PRs don't have write access to push
# the preview to gh-pages. The build check above still validates the PR.
- uses: rossjrw/pr-preview-action@v1
continue-on-error: true
with:
source-dir: _build/html

cleanup:
if: github.event.action == 'closed'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: rossjrw/pr-preview-action@v1
Loading