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.
5
-
6
- # Sample workflow for building and deploying a Jekyll site to GitHub Pages
7
1
name : Deploy Jekyll site to Pages
8
2
9
3
on :
10
- # Runs on pushes targeting the default branch
11
4
push :
12
5
branches : ['master']
13
-
14
- # Allows you to run this workflow manually from the Actions tab
15
6
workflow_dispatch :
16
7
17
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18
8
permissions :
19
9
contents : read
20
10
pages : write
@@ -27,35 +17,32 @@ concurrency:
27
17
cancel-in-progress : false
28
18
29
19
jobs :
30
- # Build job
31
20
build :
32
21
runs-on : ubuntu-latest
33
22
steps :
34
23
- name : Checkout
35
24
uses : actions/checkout@v4
36
25
- name : Setup node
37
- uses : actions/setup-node@v3
26
+ uses : actions/setup-node@v4
38
27
with :
39
- node-version : ' 18 '
28
+ node-version : 22
40
29
- name : Setup NPM dependencies
41
30
run : npm ci
42
31
- name : Setup Ruby
43
- uses : ruby/setup-ruby@v1.152.0
32
+ uses : ruby/setup-ruby@v1
44
33
with :
45
34
bundler-cache : true
46
35
- name : Setup Pages
47
36
id : pages
48
- uses : actions/configure-pages@v3
37
+ uses : actions/configure-pages@v5
49
38
- name : Build with Jekyll
50
- # Outputs to the './_site' directory by default
51
39
run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
52
40
env :
53
41
JEKYLL_ENV : production
54
42
- name : Upload artifact
55
43
# Automatically uploads an artifact from the './_site' directory by default
56
44
uses : actions/upload-pages-artifact@v3
57
45
58
- # Deployment job
59
46
deploy :
60
47
environment :
61
48
name : github-pages
65
52
steps :
66
53
- name : Deploy to GitHub Pages
67
54
id : deployment
68
- uses : actions/deploy-pages@v2
55
+ uses : actions/deploy-pages@v4
0 commit comments