Skip to content

Commit d04a8c9

Browse files
authored
Merge pull request #3326 from allanrenucci/drone-release
Fix #3310: Automate publishing to GitHub Release
2 parents a886cd4 + 20b205b commit d04a8c9

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.drone.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,26 @@ pipeline:
7272
environment:
7373
- RELEASEBUILD=yes
7474
commands:
75+
# Produces dotty-version.{tar.gz, zip}
76+
- ./project/scripts/sbt dist-bootstrapped/packArchive
7577
- ./project/scripts/sbtPublish ";dotty-bootstrapped/publishSigned ;sonatypeRelease"
7678
volumes:
7779
- /home/drone/keys:/keys
7880
secrets: [ sonatype_user, sonatype_pw, pgp_pw ]
7981
when:
80-
event: deployment
81-
environment: release
82+
event: tag
83+
84+
# Publish dotty-version.{tar.gz, zip} to GitHub Release
85+
github_release:
86+
image: plugins/github-release
87+
secrets: [ github_token ]
88+
draft: true
89+
files:
90+
- dist-bootstrapped/target/dotty-*
91+
checksum:
92+
- sha256
93+
when:
94+
event: tag
8295

8396
publish_sbt_release:
8497
image: lampepfl/dotty:2017-10-07

0 commit comments

Comments
 (0)