@@ -318,7 +318,7 @@ jobs:
318
318
needs : [test, test_bootstrapped, community_build, test_sbt, test_java11]
319
319
if : github.event_name == 'push' &&
320
320
startsWith(github.event.ref, 'refs/tags/') &&
321
- !startsWith(github.ref, 'sbt-dotty-')
321
+ !startsWith(github.event. ref, 'refs/tags/ sbt-dotty-')
322
322
323
323
env :
324
324
RELEASEBUILD : yes
@@ -363,6 +363,7 @@ jobs:
363
363
./project/scripts/sbt dist-bootstrapped/packArchive
364
364
sha256sum dist-bootstrapped/target/dotty-* > dist-bootstrapped/target/sha256sum.txt
365
365
./project/scripts/sbtPublish ";project dotty-bootstrapped ;publishSigned ;sonatypeBundleRelease"
366
+ echo "::set-env name=RELEASE_TAG::${GITHUB_REF#*refs/tags/}"
366
367
367
368
- name : Create GitHub Release
368
369
id : create_gh_release
@@ -374,16 +375,16 @@ jobs:
374
375
release_name : ${{ github.ref }}
375
376
body :
376
377
draft : false
377
- prerelease : ${{ endsWith(github.ref , 'RC1 ') }}
378
+ prerelease : ${{ contains(env.RELEASE_TAG , 'RC ') }}
378
379
379
380
- name : Upload zip archive to GitHub Release
380
381
uses : actions/upload-release-asset@v1
381
382
env :
382
383
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
383
384
with :
384
385
upload_url : ${{ steps.create_gh_release.outputs.upload_url }}
385
- asset_path : ./dist-bootstrapped/target/dotty-${{ github.ref }}.zip
386
- asset_name : dotty-${{ github.ref }}.zip
386
+ asset_path : ./dist-bootstrapped/target/dotty-${{ env.RELEASE_TAG }}.zip
387
+ asset_name : dotty-${{ env.RELEASE_TAG }}.zip
387
388
asset_content_type : application/zip
388
389
389
390
- name : Upload tar.gz archive to GitHub Release
@@ -392,8 +393,8 @@ jobs:
392
393
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
393
394
with :
394
395
upload_url : ${{ steps.create_gh_release.outputs.upload_url }}
395
- asset_path : ./dist-bootstrapped/target/dotty-${{ github.ref }}.tar.gz
396
- asset_name : dotty-${{ github.ref }}.tar.gz
396
+ asset_path : ./dist-bootstrapped/target/dotty-${{ env.RELEASE_TAG }}.tar.gz
397
+ asset_name : dotty-${{ env.RELEASE_TAG }}.tar.gz
397
398
asset_content_type : application/gzip
398
399
399
400
- name : Upload SHA256 sum of the release artefacts to GitHub Release
@@ -412,7 +413,7 @@ jobs:
412
413
needs : [publish_release]
413
414
if : github.event_name == 'push' &&
414
415
startsWith(github.event.ref, 'refs/tags/') &&
415
- !startsWith(github.ref, 'sbt-dotty-')
416
+ !startsWith(github.event. ref, 'refs/tags/ sbt-dotty-')
416
417
417
418
env :
418
419
RELEASEBUILD : yes
@@ -460,8 +461,7 @@ jobs:
460
461
container : akmetiuk/dotty:2020-02-12
461
462
needs : [test, test_bootstrapped, community_build, test_sbt, test_java11]
462
463
if : github.event_name == 'push' &&
463
- startsWith(github.event.ref, 'refs/tags/') &&
464
- startsWith(github.ref, 'sbt-dotty-')
464
+ startsWith(github.event.ref, 'refs/tags/sbt-dotty-')
465
465
466
466
env :
467
467
RELEASEBUILD : yes
0 commit comments