CircleCI artifact redirector #5555
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To enable this workflow on a fork, comment out: | |
# | |
# if: github.repository == 'napari/docs' | |
name: CircleCI artifact redirector | |
on: [status] | |
jobs: | |
circleci_artifacts_redirector_job: | |
runs-on: ubuntu-latest | |
if: "github.event.context == 'ci/circleci: build-docs'" | |
permissions: | |
statuses: write | |
name: Run CircleCI artifacts redirector | |
# if: github.repository == 'napari/docs' | |
steps: | |
- name: GitHub Action step | |
uses: larsoner/circleci-artifacts-redirector-action@master | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
api-token: ${{ secrets.CIRCLECI_TOKEN }} | |
artifact-path: 0/docs/docs/_build/html/index.html | |
circleci-jobs: build-docs | |
job-title: Check the rendered docs here! |