diff --git a/.circleci/config.yml b/.circleci/config.yml index 13ff348b..a22645a5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,6 @@ version: 2.1 jobs: - build_book: + build-book: docker: - image: cimg/python:3.9 steps: @@ -22,6 +22,6 @@ jobs: # Tell CircleCI to use this workflow when it builds the site workflows: version: 2 - build_book: + build-book: jobs: - - build_book + - build-book diff --git a/.github/workflows/artifact_redirect.yml b/.github/workflows/artifact_redirect.yml index 49b2ceaa..fbf70ade 100644 --- a/.github/workflows/artifact_redirect.yml +++ b/.github/workflows/artifact_redirect.yml @@ -1,11 +1,15 @@ 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.event.context == 'ci/circleci: build-book'" permissions: statuses: write name: Run CircleCI artifacts redirector @@ -17,5 +21,5 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} api-token: ${{ secrets.CIRCLECI_TOKEN }} artifact-path: 0/html/index.html - circleci-jobs: build + circleci-jobs: build-book job-title: View rendered book here!