@@ -35,10 +35,10 @@ jobs:
35
35
with :
36
36
submodules : true
37
37
38
- - name : " Setup Ruby"
38
+ - name : " Setup old Ruby. "
39
39
uses : ruby/setup-ruby@v1
40
40
with :
41
- # ruby-version: .ruby-version # So checkout is needed.
41
+ ruby-version : ' 2.7.8 '
42
42
bundler-cache : true
43
43
cache-version : 0 # Increment this number if you need to re-download cached gems.
44
44
@@ -65,16 +65,23 @@ jobs:
65
65
sources/iconfont/iconfont-preview.html
66
66
if-no-files-found : error
67
67
68
- - name : " Setup Pages"
68
+ - name : " Setup Ruby."
69
+ uses : ruby/setup-ruby@v1
70
+ with :
71
+ # ruby-version: .ruby-version # So checkout is needed.
72
+ bundler-cache : true
73
+ cache-version : 0 # Increment this number if you need to re-download cached gems.
74
+
75
+ - name : " Retrieve GitHub Pages configuration."
69
76
id : pages
70
77
uses : actions/configure-pages@v3
71
78
72
- - name : " Build with Jekyll"
79
+ - name : " Build _site with Jekyll. "
73
80
run : bundle exec jekyll build --trace --baseurl "${{ steps.pages.outputs.base_path }}"
74
81
env :
75
82
JEKYLL_ENV : production
76
83
77
- - name : " Upload artifact"
84
+ - name : " Upload 'github-pages' artifact. "
78
85
uses : actions/upload-pages-artifact@v2
79
86
with :
80
87
path : _site/
@@ -111,10 +118,10 @@ jobs:
111
118
runs-on : ubuntu-latest
112
119
steps :
113
120
114
- - name : " Calculate relevant SHA"
121
+ - name : " Calculate relevant SHA. "
115
122
id : params
116
123
run : |
117
- echo "sha=${{ github.event.pull_request.base.sha || github.event.after }}" >> $ GITHUB_OUTPUT
124
+ echo "sha=${{ github.event.pull_request.base.sha || github.event.after }}" >> "${ GITHUB_OUTPUT}"
118
125
119
126
- name : " Load cached site."
120
127
id : cache
@@ -131,11 +138,10 @@ jobs:
131
138
submodules : true
132
139
ref : ${{ steps.params.outputs.sha }}
133
140
134
- - name : " Setup Ruby."
135
- if : steps.cache.outputs.cache-hit != 'true'
141
+ - name : " Setup old Ruby."
136
142
uses : ruby/setup-ruby@v1
137
143
with :
138
- # ruby-version: .ruby-version # So checkout is needed.
144
+ ruby-version : ' 2.7.8 '
139
145
bundler-cache : true
140
146
cache-version : 0 # Increment this number if you need to re-download cached gems.
141
147
@@ -144,11 +150,19 @@ jobs:
144
150
working-directory : sources/iconfont
145
151
run : ${{ github.workspace }}/.github/workflows/install-fontcustom.sh
146
152
147
- - name : " Build iconfont"
153
+ - name : " Build iconfont. "
148
154
if : steps.cache.outputs.cache-hit != 'true'
149
155
working-directory : sources/iconfont
150
156
run : fontcustom compile
151
157
158
+ - name : " Setup Ruby."
159
+ if : steps.cache.outputs.cache-hit != 'true'
160
+ uses : ruby/setup-ruby@v1
161
+ with :
162
+ # ruby-version: .ruby-version # So checkout is needed.
163
+ bundler-cache : true
164
+ cache-version : 0 # Increment this number if you need to re-download cached gems.
165
+
152
166
- name : " Retrieve GitHub Pages configuration."
153
167
if : steps.cache.outputs.cache-hit != 'true'
154
168
id : pages
0 commit comments