@@ -85,16 +85,13 @@ jobs:
85
85
cd scalafix
86
86
sbt testCI
87
87
88
- - if : matrix.scala == '2.13.8' && matrix.project == 'rootJVM'
89
- run : sbt 'project ${{ matrix.project }}' '++${{ matrix.scala }}' microsite/mdoc
90
-
91
88
- name : Make target directories
92
89
if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/series/2.5.x')
93
- run : mkdir -p target node/js/target protocols/js/target .js/target core/js/target core/jvm/target .jvm/target .native/target scodec/jvm/target scodec/js/target io/js/target reactive-streams/target io/jvm/target protocols/jvm/target benchmark/target project/target
90
+ run : mkdir -p target node/js/target protocols/js/target .js/target core/js/target mdoc/target core/jvm/target .jvm/target .native/target scodec/jvm/target scodec/js/target io/js/target reactive-streams/target io/jvm/target protocols/jvm/target benchmark/target project/target
94
91
95
92
- name : Compress target directories
96
93
if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/series/2.5.x')
97
- run : tar cf targets.tar target node/js/target protocols/js/target .js/target core/js/target core/jvm/target .jvm/target .native/target scodec/jvm/target scodec/js/target io/js/target reactive-streams/target io/jvm/target protocols/jvm/target benchmark/target project/target
94
+ run : tar cf targets.tar target node/js/target protocols/js/target .js/target core/js/target mdoc/target core/jvm/target .jvm/target .native/target scodec/jvm/target scodec/js/target io/js/target reactive-streams/target io/jvm/target protocols/jvm/target benchmark/target project/target
98
95
99
96
- name : Upload target directories
100
97
if : github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/series/2.5.x')
@@ -213,78 +210,45 @@ jobs:
213
210
run : sbt '++${{ matrix.scala }}' tlRelease
214
211
215
212
site :
216
- name : Deploy site
217
- needs : [publish]
218
- if : always() && needs.build.result == 'success' && (needs.publish.result == 'success' && github.ref == 'refs/heads/main')
213
+ name : Generate Site
219
214
strategy :
220
215
matrix :
221
216
os : [ubuntu-latest]
222
217
scala : [2.13.8]
223
218
java : [temurin@17]
224
219
runs-on : ${{ matrix.os }}
225
220
steps :
226
- - name : Download target directories (3.1.1, rootJS)
227
- uses : actions/download-artifact@v2
228
- with :
229
- name : target-${{ matrix.os }}-${{ matrix.java }}-3.1.1-rootJS
230
-
231
- - name : Inflate target directories (3.1.1, rootJS)
232
- run : |
233
- tar xf targets.tar
234
- rm targets.tar
235
-
236
- - name : Download target directories (3.1.1, rootJVM)
237
- uses : actions/download-artifact@v2
238
- with :
239
- name : target-${{ matrix.os }}-${{ matrix.java }}-3.1.1-rootJVM
240
-
241
- - name : Inflate target directories (3.1.1, rootJVM)
242
- run : |
243
- tar xf targets.tar
244
- rm targets.tar
245
-
246
- - name : Download target directories (2.12.15, rootJS)
247
- uses : actions/download-artifact@v2
248
- with :
249
- name : target-${{ matrix.os }}-${{ matrix.java }}-2.12.15-rootJS
250
-
251
- - name : Inflate target directories (2.12.15, rootJS)
252
- run : |
253
- tar xf targets.tar
254
- rm targets.tar
255
-
256
- - name : Download target directories (2.12.15, rootJVM)
257
- uses : actions/download-artifact@v2
221
+ - name : Checkout current branch (full)
222
+ uses : actions/checkout@v2
258
223
with :
259
- name : target-${{ matrix.os }}-${{ matrix.java }}-2.12.15-rootJVM
260
-
261
- - name : Inflate target directories (2.12.15, rootJVM)
262
- run : |
263
- tar xf targets.tar
264
- rm targets.tar
224
+ fetch-depth : 0
265
225
266
- - name : Download target directories (2.13.8, rootJS)
267
- uses : actions/download-artifact@v2
226
+ - name : Setup Java (temurin@17)
227
+ if : matrix.java == 'temurin@17'
228
+ uses : actions/setup-java@v2
268
229
with :
269
- name : target-${{ matrix.os }}-${{ matrix.java }}-2.13.8-rootJS
270
-
271
- - name : Inflate target directories (2.13.8, rootJS)
272
- run : |
273
- tar xf targets.tar
274
- rm targets.tar
230
+ distribution : temurin
231
+ java-version : 17
275
232
276
- - name : Download target directories (2.13.8, rootJVM)
277
- uses : actions/download-artifact @v2
233
+ - name : Cache sbt
234
+ uses : actions/cache @v2
278
235
with :
279
- name : target-${{ matrix.os }}-${{ matrix.java }}-2.13.8-rootJVM
236
+ path : |
237
+ ~/.sbt
238
+ ~/.ivy2/cache
239
+ ~/.coursier/cache/v1
240
+ ~/.cache/coursier/v1
241
+ ~/AppData/Local/Coursier/Cache/v1
242
+ ~/Library/Caches/Coursier/v1
243
+ key : ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
280
244
281
- - name : Inflate target directories (2.13.8, rootJVM)
282
- run : |
283
- tar xf targets.tar
284
- rm targets.tar
245
+ - name : Generate site
246
+ run : sbt '++${{ matrix.scala }}' microsite/tlSite
285
247
286
- - name : Deploy site
287
- uses : peaceiris/actions-gh-pages@v3
248
+ - name : Publish site
249
+ if : github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
250
+
288
251
with :
289
- publish_dir : ./target/website
290
252
github_token : ${{ secrets.GITHUB_TOKEN }}
253
+ publish_dir : mdoc/target/docs/site
254
+ keep_files : true
0 commit comments