Skip to content

Fix: circle ci redirect build #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from 4 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
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 2.1
jobs:
build_book:
build-book:
docker:
- image: cimg/python:3.9
steps:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/artifact_redirect.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
name: CircleCI artifacts redirector
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.repository == 'pyOpenSci/python-package-guide' && github.event.context == 'ci/circleci: build_book'"
if: "github.repository == 'pyOpenSci/python-package-guide' && github.event.context == 'ci/circleci: build-book'"
permissions:
statuses: write
name: Run CircleCI artifacts redirector
Expand All @@ -17,5 +20,5 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
api-token: ${{ secrets.CIRCLECI_TOKEN }}
artifact-path: 0/html/index.html
circleci-jobs: build
job-title: View rendered book here!
circleci-jobs: build-book
job-title: Check the rendered book here!