| 1 |
name: Run CircleCI artifacts redirector for rendered HTML |
| 2 |
on: [status] |
| 3 |
|
| 4 |
permissions: read-all |
| 5 |
|
| 6 |
jobs: |
| 7 |
circleci_artifacts_redirector_job: |
| 8 |
if: ${{ (github.repository == 'astropy/astropy-sphinx-theme') && startswith(github.event.context, 'ci/circleci') }} |
| 9 |
runs-on: ubuntu-latest |
| 10 |
permissions: |
| 11 |
statuses: write |
| 12 |
name: Run CircleCI artifacts redirector |
| 13 |
steps: |
| 14 |
- name: GitHub Action step |
| 15 |
uses: scientific-python/circleci-artifacts-redirector-action@5d358ff96e96429a5c64a969bb4a574555439f4f # v1.3.1 |
| 16 |
with: |
| 17 |
repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 18 |
api-token: ${{ secrets.ASTROPY_SPHINX_CIRCLE_TOKEN }} # zizmor: ignore[secrets-outside-env] |
| 19 |
artifact-path: 0/build_preview/_build/html/index.html |
| 20 |
circleci-jobs: website,theme,theme-bootstrap,theme-devdeps,astropy |
| 21 |
job-title: "--> Rendering Preview <--" |