Skip to content

Commit 661dcb6

Browse files
authored
Update build-and-deploy-jekyll-site.yml
1 parent 0c07452 commit 661dcb6

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/build-and-deploy-jekyll-site.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
name: Deploy Jekyll site to Pages
88

99
on:
10+
# Runs on pushes targeting the default branch
1011
push:
1112
branches: ["main"]
1213

@@ -19,20 +20,22 @@ permissions:
1920
pages: write
2021
id-token: write
2122

22-
# Allow one concurrent deployment
23+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
24+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2325
concurrency:
2426
group: "pages"
25-
cancel-in-progress: true
27+
cancel-in-progress: false
2628

2729
jobs:
2830
# Build job
2931
build:
3032
runs-on: ubuntu-latest
3133
steps:
3234
- name: Checkout
33-
uses: actions/checkout@v4
35+
uses: actions/checkout@v5
3436
- name: Setup Ruby
35-
uses: ruby/setup-ruby@v1
37+
# https://github.com/ruby/setup-ruby/releases/tag/v1.207.0
38+
uses: ruby/setup-ruby@ab177d40ee5483edb974554986f56b33477e21d0
3639
with:
3740
ruby-version: '3.1' # Not needed with a .ruby-version file
3841
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
@@ -47,7 +50,7 @@ jobs:
4750
JEKYLL_ENV: production
4851
- name: Upload artifact
4952
# Automatically uploads an artifact from the './_site' directory by default
50-
uses: actions/upload-pages-artifact@v3
53+
uses: actions/upload-pages-artifact@v4
5154

5255
# Deployment job
5356
deploy:
@@ -59,4 +62,4 @@ jobs:
5962
steps:
6063
- name: Deploy to GitHub Pages
6164
id: deployment
62-
uses: actions/deploy-pages@v4
65+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)