@@ -357,11 +357,54 @@ jobs:
357
357
key : ${{ runner.os }}-general-${{ hashFiles('**/build.sbt') }}
358
358
restore-keys : ${{ runner.os }}-general-
359
359
360
- - name : Publish Nightly
360
+ - name : Publish Release
361
361
run : |
362
362
./project/scripts/sbt dist-bootstrapped/packArchive
363
+ sha256sum dist-bootstrapped/target/dotty-* > dist-bootstrapped/target/sha256sum.txt
363
364
./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease"
364
365
366
+ - name : Create GitHub Release
367
+ id : create_gh_release
368
+ uses : actions/create-release@latest
369
+ env :
370
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
371
+ with :
372
+ tag_name : ${{ github.ref }}
373
+ release_name : ${{ github.ref }}
374
+ body :
375
+ draft : false
376
+ prerelease : ${{ endsWith(github.ref, "RC-1") }}
377
+
378
+ - name : Upload zip archive to GitHub Release
379
+ uses : actions/upload-release-asset@v1
380
+ env :
381
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
382
+ with :
383
+ upload_url : ${{ steps.create_gh_release.outputs.upload_url }}
384
+ asset_path : ./dist-bootstrapped/target/dotty-${{ github.ref }}.zip
385
+ asset_name : dotty-${{ github.ref }}.zip
386
+ asset_content_type : application/zip
387
+
388
+ - name : Upload tar.gz archive to GitHub Release
389
+ uses : actions/upload-release-asset@v1
390
+ env :
391
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
392
+ with :
393
+ upload_url : ${{ steps.create_gh_release.outputs.upload_url }}
394
+ asset_path : ./dist-bootstrapped/target/dotty-${{ github.ref }}.tar.gz
395
+ asset_name : dotty-${{ github.ref }}.tar.gz
396
+ asset_content_type : application/gzip
397
+
398
+ - name : Upload SHA256 sum of the release artefacts to GitHub Release
399
+ uses : actions/upload-release-asset@v1
400
+ env :
401
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
402
+ with :
403
+ upload_url : ${{ steps.create_gh_release.outputs.upload_url }}
404
+ asset_path : ./dist-bootstrapped/target/sha256sum.txt
405
+ asset_name : sha256sum.txt
406
+ asset_content_type : text/plain
407
+
365
408
release_documentation :
366
409
runs-on : self-hosted
367
410
container : akmetiuk/dotty:2020-02-12
@@ -408,3 +451,4 @@ jobs:
408
451
- name : Nightly Documentation
409
452
run : |
410
453
./project/scripts/genDocs -doc-snapshot
454
+
0 commit comments