Skip to content

Commit

Permalink
Prevent concurrent deployments
Browse files Browse the repository at this point in the history
GitHub Pages' sites are singletons and therefore we should use the
recommended pattern to prevent multiple deployments to run at the same
time; Instead, we want to queue them all up.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Oct 11, 2024
1 parent a29d864 commit b3abe00
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:

jobs:
deploy:
concurrency:
group: "pages"
cancel-in-progress: false
runs-on: ubuntu-latest
permissions:
pages: write # to deploy to GitHub Pages
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ jobs:
name: bundle-${{ matrix.language.lang }}
path: ${{ matrix.language.lang }}.bundle
push-updates:
concurrency:
group: "pages"
cancel-in-progress: false
needs: [check-for-updates, update-book]
if: needs.check-for-updates.outputs.matrix != '[""]'
permissions:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-download-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:

jobs:
update-download-data:
concurrency:
group: "pages"
cancel-in-progress: false
if: github.event.repository.fork == false || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-git-version-and-manual-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:

jobs:
update-git-version-and-manual-pages:
concurrency:
group: "pages"
cancel-in-progress: false
if: github.event.repository.fork == false || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
permissions:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-translated-manual-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:

jobs:
check-for-updates:
concurrency:
group: "pages"
cancel-in-progress: false
if: github.event.repository.fork == false || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit b3abe00

Please sign in to comment.