File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change 1
- name : " Build and Deploy"
1
+ name : " Build and Deploy Jekyll site to Pages"
2
+
2
3
on :
3
4
push :
4
5
branches :
9
10
- README.md
10
11
- LICENSE
11
12
12
- # Allows you to run this workflow manually from the Actions tab
13
13
workflow_dispatch :
14
14
15
15
permissions :
16
16
contents : read
17
17
pages : write
18
18
id-token : write
19
19
20
- # Allow one concurrent deployment
21
20
concurrency :
22
21
group : " pages"
23
22
cancel-in-progress : true
@@ -32,22 +31,21 @@ jobs:
32
31
with :
33
32
fetch-depth : 0
34
33
# submodules: true
35
- # If using the 'assets' git submodule from Chirpy Starter, uncomment above
34
+ # 如果你使用了git子模块,可以取消注释上述行
36
35
# (See: https://github.com/cotes2020/chirpy-starter/tree/main/assets)
37
36
38
- - name : Setup Pages
39
- id : pages
40
- uses : actions/configure-pages@v3
41
-
42
37
- name : Setup Ruby
43
38
uses : ruby/setup-ruby@v1
44
39
with :
45
- ruby-version : 3 # reads from a ' .ruby-version' or ' .tools-version' file if 'ruby-version' is omitted
40
+ ruby-version : 3 # 自动从 .ruby-version 或 .tools-version 文件读取版本信息,如果未指定
46
41
bundler-cache : true
47
42
43
+ - name : Setup Pages
44
+ id : pages
45
+ uses : actions/configure-pages@v3
46
+
48
47
- name : Build site
49
- run : bundle exec jekyll b -d "_site${{ steps.pages.outputs.base_path }}"
50
-
48
+ run : bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
51
49
env :
52
50
JEKYLL_ENV : " production"
53
51
You can’t perform that action at this time.
0 commit comments