Skip to content

Commit cd6cbcf

Browse files
committed
update action
1 parent 8edb23d commit cd6cbcf

1 file changed

Lines changed: 17 additions & 24 deletions

File tree

.github/workflows/pages.yaml

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
1+
# See https://github.com/actions/starter-workflows/blob/main/pages/jekyll-gh-pages.yml
52

63
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
7-
name: Deploy Jekyll site to Pages
4+
name: Build and Deploy Pages Site
85

96
on:
7+
# Runs on pushes targeting the default branch
108
push:
11-
branches: ["main", "master"]
9+
branches: [$default-branch]
1210

1311
# Allows you to run this workflow manually from the Actions tab
1412
workflow_dispatch:
@@ -19,35 +17,31 @@ permissions:
1917
pages: write
2018
id-token: write
2119

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

2726
jobs:
27+
2828
# Build job
2929
build:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v3
34-
- name: Setup Ruby
35-
uses: ruby/setup-ruby@v1
33+
uses: actions/checkout@v4
3634
with:
37-
ruby-version: '3.1' # Not needed with a .ruby-version file
38-
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
39-
cache-version: 0 # Increment this number if you need to re-download cached gems
35+
submodules: true
4036
- name: Setup Pages
41-
id: pages
42-
uses: actions/configure-pages@v2
37+
uses: actions/configure-pages@v5
4338
- name: Build with Jekyll
44-
# Outputs to the './_site' directory by default
45-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
46-
env:
47-
JEKYLL_ENV: production
39+
uses: actions/jekyll-build-pages@v1
40+
with:
41+
source: ./
42+
destination: ./_site
4843
- name: Upload artifact
49-
# Automatically uploads an artifact from the './_site' directory by default
50-
uses: actions/upload-pages-artifact@v1
44+
uses: actions/upload-pages-artifact@v3
5145

5246
# Deployment job
5347
deploy:
@@ -59,5 +53,4 @@ jobs:
5953
steps:
6054
- name: Deploy to GitHub Pages
6155
id: deployment
62-
uses: actions/deploy-pages@v1
63-
56+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)