42
42
bundler-cache : true
43
43
cache-version : 0 # Increment this number if you need to re-download cached gems.
44
44
45
+ - name : " Install fontcustom with all dependencies."
46
+ working-directory : sources/iconfont
47
+ run : ${{ github.workspace }}/.github/workflows/install-fontcustom.sh
48
+
49
+ - name : " Build iconfont."
50
+ working-directory : sources/iconfont
51
+ run : fontcustom compile
52
+
53
+ - name : " Upload 'iconfont' artifact."
54
+ uses : actions/upload-artifact@v3
55
+ with :
56
+ name : ' iconfont'
57
+ path : |
58
+ _sass/_iconfont.scss
59
+ assets/fonts/iconfont.eot
60
+ assets/fonts/iconfont.svg
61
+ assets/fonts/iconfont.ttf
62
+ assets/fonts/iconfont.woff
63
+ assets/fonts/iconfont.woff2
64
+ sources/iconfont/.fontcustom-manifest.json
65
+ sources/iconfont/iconfont-preview.html
66
+ if-no-files-found : error
67
+
45
68
- name : " Setup Pages"
46
69
id : pages
47
70
uses : actions/configure-pages@v3
@@ -116,6 +139,16 @@ jobs:
116
139
bundler-cache : true
117
140
cache-version : 0 # Increment this number if you need to re-download cached gems.
118
141
142
+ - name : " Install fontcustom with all dependencies."
143
+ if : steps.cache.outputs.cache-hit != 'true'
144
+ working-directory : sources/iconfont
145
+ run : ${{ github.workspace }}/.github/workflows/install-fontcustom.sh
146
+
147
+ - name : " Build iconfont"
148
+ if : steps.cache.outputs.cache-hit != 'true'
149
+ working-directory : sources/iconfont
150
+ run : fontcustom compile
151
+
119
152
- name : " Retrieve GitHub Pages configuration."
120
153
if : steps.cache.outputs.cache-hit != 'true'
121
154
id : pages
@@ -162,6 +195,15 @@ jobs:
162
195
name : ' github-pages-base'
163
196
path : github-pages-base
164
197
198
+ - name : " Prepare base for diffing."
199
+ working-directory : github-pages-base
200
+ run : |
201
+ rm assets/fonts/iconfont.eot
202
+ rm assets/fonts/iconfont.svg
203
+ rm assets/fonts/iconfont.ttf
204
+ rm assets/fonts/iconfont.woff
205
+ rm assets/fonts/iconfont.woff2
206
+
165
207
- name : " Download just-built artifact."
166
208
uses : actions/download-artifact@v3
167
209
with :
@@ -170,8 +212,15 @@ jobs:
170
212
171
213
- name : " Prepare head for diffing."
172
214
working-directory : github-pages-head
173
- # This is not a normal artifact. It was produced by actions/upload-pages-artifact and has only a tar file inside.
174
- run : tar -xf artifact.tar && rm artifact.tar
175
-
215
+ run : |
216
+ # This is not a normal artifact. It was produced by actions/upload-pages-artifact and has only a tar file inside.
217
+ tar -xf artifact.tar && rm artifact.tar
218
+ rm assets/fonts/iconfont.eot
219
+ rm assets/fonts/iconfont.svg
220
+ rm assets/fonts/iconfont.ttf
221
+ rm assets/fonts/iconfont.woff
222
+ rm assets/fonts/iconfont.woff2
223
+
224
+ # assets/fonts/ is excluded, because building fonts is not deterministic.
176
225
- name : " Diff head against base."
177
226
run : diff --recursive github-pages-base github-pages-head
0 commit comments