@@ -311,3 +311,100 @@ jobs:
311
311
- name : Nightly Documentation
312
312
run : |
313
313
./project/scripts/genDocs -doc-snapshot
314
+
315
+ publish_release :
316
+ runs-on : self-hosted
317
+ container : akmetiuk/dotty:2020-02-12
318
+ needs : [test, test_bootstrapped, community_build, test_sbt, test_java11]
319
+ if : github.event_name == 'push' &&
320
+ startsWith(github.event.ref, 'refs/tags/')
321
+
322
+ env :
323
+ RELEASEBUILD : yes
324
+ PGP_PW : ${{ secrets.PGP_PW }} # PGP passphrase
325
+ PGP_SECRET : ${{ secrets.PGP_SECRET }} # Export your private and public PGP key to an *.asc file, take the file's contents as a string
326
+ SONATYPE_PW : ${{ secrets.SONATYPE_PW }}
327
+ SONATYPE_USER : ${{ secrets.SONATYPE_USER }}
328
+
329
+ steps :
330
+ - name : Checkout cleanup script
331
+ uses : actions/checkout@v2
332
+
333
+ - name : Cleanup
334
+ run : .github/workflows/cleanup.sh
335
+
336
+ - name : Git Checkout
337
+ uses : actions/checkout@v2
338
+
339
+ - name : Cache Ivy
340
+ uses : actions/cache@v1.1.2
341
+ with :
342
+ path : /root/.ivy2/cache
343
+ key : ${{ runner.os }}-ivy-${{ hashFiles('**/build.sbt') }}
344
+ restore-keys : ${{ runner.os }}-ivy-
345
+
346
+ - name : Cache SBT
347
+ uses : actions/cache@v1.1.2
348
+ with :
349
+ path : /root/.sbt
350
+ key : ${{ runner.os }}-sbt-${{ hashFiles('project/**') }}
351
+ restore-keys : ${{ runner.os }}-sbt-
352
+
353
+ - name : Cache Coursier and Mill
354
+ uses : actions/cache@v1.1.2
355
+ with :
356
+ path : /root/.cache
357
+ key : ${{ runner.os }}-general-${{ hashFiles('**/build.sbt') }}
358
+ restore-keys : ${{ runner.os }}-general-
359
+
360
+ - name : Publish Nightly
361
+ run : |
362
+ ./project/scripts/sbt dist-bootstrapped/packArchive
363
+ ./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease"
364
+
365
+ release_documentation :
366
+ runs-on : self-hosted
367
+ container : akmetiuk/dotty:2020-02-12
368
+ needs : [publish_release]
369
+ if : github.event_name == 'push' &&
370
+ startsWith(github.event.ref, 'refs/tags/')
371
+ env :
372
+ RELEASEBUILD : yes
373
+ BOT_TOKEN : ${{ secrets.BOT_TOKEN }} # If you need to change this:
374
+ # Generate one at https://github.com/settings/tokens
375
+ # Make sure you have the write permissions to the repo: https://github.com/lampepfl/dotty-website
376
+
377
+ steps :
378
+ - name : Checkout cleanup script
379
+ uses : actions/checkout@v2
380
+
381
+ - name : Cleanup
382
+ run : .github/workflows/cleanup.sh
383
+
384
+ - name : Git Checkout
385
+ uses : actions/checkout@v2
386
+
387
+ - name : Cache Ivy
388
+ uses : actions/cache@v1.1.2
389
+ with :
390
+ path : /root/.ivy2/cache
391
+ key : ${{ runner.os }}-ivy-${{ hashFiles('**/build.sbt') }}
392
+ restore-keys : ${{ runner.os }}-ivy-
393
+
394
+ - name : Cache SBT
395
+ uses : actions/cache@v1.1.2
396
+ with :
397
+ path : /root/.sbt
398
+ key : ${{ runner.os }}-sbt-${{ hashFiles('project/**') }}
399
+ restore-keys : ${{ runner.os }}-sbt-
400
+
401
+ - name : Cache Coursier and Mill
402
+ uses : actions/cache@v1.1.2
403
+ with :
404
+ path : /root/.cache
405
+ key : ${{ runner.os }}-general-${{ hashFiles('**/build.sbt') }}
406
+ restore-keys : ${{ runner.os }}-general-
407
+
408
+ - name : Nightly Documentation
409
+ run : |
410
+ ./project/scripts/genDocs -doc-snapshot
0 commit comments