Skip to content

Commit

Permalink
feat: add redirect workflow to book
Browse files Browse the repository at this point in the history
  • Loading branch information
lwasser committed Nov 8, 2024
1 parent 33e1f6f commit 99fc83d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/artifact_redirect.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/artifact_redirect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Book Preview Redirect
on: [status]

concurrency:
group: docs-preview-${{ github.ref }}
cancel-in-progress: true

jobs:
circleci_artifacts_redirector_job:
runs-on: ubuntu-latest
# For testing this action on a fork, remove the "github.repository =="" condition.
if: "github.event.context == 'ci/circleci: build-book'"
permissions:
statuses: write
name: Run CircleCI artifacts redirector
steps:
- name: GitHub Action step
id: step1
uses: larsoner/circleci-artifacts-redirector-action@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
api-token: ${{ secrets.CIRCLECI_TOKEN }}
artifact-path: 0/html/index.html
circleci-jobs: build-book
job-title: View rendered book here!

0 comments on commit 99fc83d

Please sign in to comment.