diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 88e2f1c..ec5f114 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -10,7 +10,6 @@ on: - "tox.ini" - ".github/workflows/docs.yml" pull_request: - branches: [main] paths: - "docs/**" - "libby/**" @@ -23,11 +22,6 @@ permissions: pages: write id-token: write -# Only one deploy at a time; never cancel one that's already publishing. -concurrency: - group: "pages" - cancel-in-progress: false - jobs: build: runs-on: ubuntu-latest @@ -53,6 +47,11 @@ jobs: # Only publish from pushes to main, not from PRs. if: github.event_name == 'push' && github.ref == 'refs/heads/main' needs: build + # Scoped to this job rather than the workflow: only one deploy at a time, + # never cancelling one already publishing, while PR builds stay parallel + concurrency: + group: "pages" + cancel-in-progress: false runs-on: ubuntu-latest environment: name: github-pages diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4961010..181291a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,7 +10,6 @@ on: - "tox.ini" - ".github/workflows/tests.yml" pull_request: - branches: [main] paths: - "libby/**" - "tests/**"