Skip to content

auto-publish all commits? #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dsilvasc opened this issue Nov 28, 2018 · 5 comments
Closed

auto-publish all commits? #93

dsilvasc opened this issue Nov 28, 2018 · 5 comments

Comments

@dsilvasc
Copy link

Hi,

Rather than manually publishing to a maven repository (there's an open issue asking for 0.10 for a while now), would it be possible to auto-publish on every commit? The version for automatically published artifacts could follow a different scheme like 0.0.$date.$commit or 0.0.$(git rev-list HEAD --count) if you also want to continue having manual releases.

@SethTisue
Copy link
Member

do you have a suggested technology in mind that would do this? and/or, are you volunteering?

@dsilva
Copy link

dsilva commented Feb 5, 2019

How about something like scala/scala-async#209 ?

@dsilva
Copy link

dsilva commented Feb 5, 2019

That would be coupled with Travis CI configured to build on every master commit.

@dsilva
Copy link

dsilva commented Feb 5, 2019

I'm guessing your travis config already has the the K and IV secret environment variables per https://docs.travis-ci.com/user/environment-variables/#defining-variables-in-repository-settings

@SethTisue SethTisue transferred this issue from scala/scala-async May 21, 2020
@SethTisue
Copy link
Member

transferred this issue from the scala-async repo where it was originally raised, since if we were to do this, I think we would want to handle it consistently for all the modules

the latest sbt-scala-module version brings in sbt-ci-release and sbt-dynver, so that helps

now that we're on sbt-ci-release, perhaps the need for this has lessened. we can publish (except for one manual step, see below) simply by pushing a tag — which is so easy it's not clear that further automation buys much

historically we don't do fully automated publishing for any of the modules. most modules are community maintained, but we (the Scala 2 team at Lightbend) retain a final gatekeeping role, in part by dividing the release process as follows: the community maintainer stages the release using sbt-ci-release, then someone from Lightbend has a look and then releases. switching to fully automated publishing is perhaps possible and desirable, but it's another thing to consider. I'm not actually sure if we would need to make some change on the Sonatype end or whether we'd just flip a switch in sbt-ci-release

I have no idea if our account on Sonatype has any storage limits — we'd want to be sure about that before publishing a large number of ephemeral version-tagged releases

so, the status quo remains: if someone wants to test something, they can either publishLocal on their own machine, or ask a module maintainer to push a tag

@SethTisue SethTisue changed the title auto-publish? auto-publish all commits? May 21, 2020
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

No branches or pull requests

3 participants