Skip to content

Conversation

@adriaanm
Copy link
Contributor

@adriaanm adriaanm commented Dec 4, 2014

Automatically stage a pgp-signed release of version $ver on sonatype when HEAD is tagged as 'v$ver'.

The following sensitive info is encrypted using the private key associated to this repo by Travis:

  • private key to sign the release
  • auth info for sonatype

adriaanm added a commit that referenced this pull request Dec 4, 2014
@adriaanm adriaanm merged commit 643b308 into scala:master Dec 4, 2014
@adriaanm
Copy link
Contributor Author

adriaanm commented Dec 4, 2014

The only way to test this on Travis is to merge and tag, so I did. Turns out you can't pass environment variables between script steps? publishPrep should have exported publishVersion and extraTarget, but they were not seen in https://travis-ci.org/scala/scala-xml/jobs/42939070

@adriaanm
Copy link
Contributor Author

adriaanm commented Dec 4, 2014

Got it to work with some more tweaking! To publish a release, create one (with a tag) on github, wait for CI to do its thing and close & promote repo on sonatype!

@retronym
Copy link
Member

retronym commented Dec 4, 2014

bravo!

@gkossakowski
Copy link
Contributor

Great stuff!

@gkossakowski
Copy link
Contributor

I guess it would be good to mention lack of release process in the README. We should really brag about it! 😼

@adriaanm
Copy link
Contributor Author

adriaanm commented Dec 4, 2014

It needs a little more polish, including docs, I know :-) Also, it needs to publish only when running on the supported version of Java.

@adriaanm adriaanm modified the milestone: 1.0.3 Dec 4, 2014
@adriaanm
Copy link
Contributor Author

adriaanm commented Dec 4, 2014

Instructions how to replicate: https://gist.github.com/adriaanm/e345ca2b9f598e189b6c

@adriaanm
Copy link
Contributor Author

adriaanm commented Dec 4, 2014

Propagating to:

  • scala-parser-combinators
  • scala-partest
  • scala-swing
  • scala-continuations
  • scala-partest-interface

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants