Skip to content
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

Release publishing #619

Merged
merged 8 commits into from
Oct 23, 2019
Merged

Release publishing #619

merged 8 commits into from
Oct 23, 2019

Conversation

greenhat
Copy link
Member

@greenhat greenhat commented Oct 22, 2019

Motivation

Automate publishing of a release build.

How to use

Only tag that starts with v is honored.

$ git tag v0.2.0
$ git push origin v0.2.0

This will trigger Travis to run tests first and then publish a release version 0.2.0.

Snapshot publishing

If no tag is present then good old snapshot build will be published with version based on git commit hash.

References

@greenhat greenhat added the S-wip Status: Work in progress label Oct 22, 2019
@greenhat greenhat added S-ready-for-review Status: This PR is ready for review and removed S-wip Status: Work in progress labels Oct 22, 2019
@@ -137,105 +134,124 @@ publishArtifact in Test := true

pomIncludeRepository := { _ => false }

credentials += Credentials(Path.userHome / ".sbt" / ".sigma-sonatype-credentials")
val credentialFile = Path.userHome / ".sbt" / ".sigma-sonatype-credentials"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@greenhat Could you please add to 619 also references to the sources of such cryptic tricks in built.sbt

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aslesarenko aslesarenko merged commit 4ff9c20 into develop Oct 23, 2019
@aslesarenko aslesarenko deleted the release-publishing branch October 23, 2019 13:09
scalahub pushed a commit that referenced this pull request Apr 20, 2021
* add sbt-sonatype and sbt-pgp plugins;

* remove scm from pom (generated with sbt-sonatype);
skip publishing sub-projects;
restructure travis.yml with stages;

* add encrypted secring;

* setup sbt-pgp for CI;

* add jvm opts to sbt release script on travis;

* import decrypted key;

* read creadentials from file only if it exists;

* add comments and links to guides;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-ready-for-review Status: This PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants