1
1
## Tag Driven Releasing
2
2
3
- Copied from https://github.com/scala/scala-java8-compat/commit/4a6cfc97cd95227b86650410e1b632e5ff79335b .
4
-
5
3
### Background Reading
6
4
7
5
- http://docs.travis-ci.com/user/environment-variables/
@@ -14,12 +12,12 @@ To configure tag driven releases from Travis CI.
14
12
15
13
1 . Generate a key pair for this repository with ` ./admin/genKeyPair.sh ` .
16
14
Edit ` .travis.yml ` and ` admin/build.sh ` as prompted.
17
- 2 . Publish the public key to https://pgp.mit.edu
18
- 3 . Store other secrets as encrypted environment variables with ` admin/encryptEnvVars.sh ` .
15
+ 1 . Publish the public key to https://pgp.mit.edu
16
+ 1 . Store other secrets as encrypted environment variables with ` admin/encryptEnvVars.sh ` .
19
17
Edit ` .travis.yml ` as prompted.
20
- 4 . Edit ` .travis.yml ` to use ` ./admin/build.sh ` as the build script,
18
+ 1 . Edit ` .travis.yml ` to use ` ./admin/build.sh ` as the build script,
21
19
and edit that script to use the tasks required for this project.
22
- 5 . Edit ` build.sbt ` to select which JDK will be used for publishing.
20
+ 1 . Edit ` build.sbt ` to select which JDK will be used for publishing.
23
21
24
22
It is important to add comments in .travis.yml to identify the name
25
23
of each environment variable encoded in a ` :secure ` section.
@@ -45,16 +43,18 @@ Be sure to use SBT 0.13.7 or higher to avoid [#1430](https://github.com/sbt/sbt/
45
43
46
44
### Testing
47
45
48
- 1 . Follow the release process below to create a dummy release (e.g. 0 .1.0-TEST1).
46
+ 1 . Follow the release process below to create a dummy release (e.g., ` v0 .1.0-TEST1` ).
49
47
Confirm that the release was staged to Sonatype but do not release it to Maven
50
48
central. Instead, drop the staging repository.
51
49
52
50
### Performing a release
53
51
54
- 1 . Create a GitHub "Release" ( with a corresponding tag) via the GitHub
52
+ 1 . Create a GitHub "Release" with a corresponding tag (e.g., ` v0.1.1 ` ) via the GitHub
55
53
web interface.
56
- 2 . Travis CI will schedule a build for this release. Review the build logs.
57
- 3 . Log into https://oss.sonatype.org/ and identify the staging repository.
58
- 4 . Sanity check its contents
59
- 5 . Release staging repository to Maven and send out release announcement.
60
-
54
+ 1 . The release will be published using all Scala versions in ` build.sbt ` 's ` crossScalaVersions ` .
55
+ If you need to release it against a different Scala version, include it in the tag
56
+ name after a ` # ` (e.g., ` v0.1.1#2.13.0-M1 ` ).
57
+ 1 . Travis CI will schedule a build for this release. Review the build logs.
58
+ 1 . Log into https://oss.sonatype.org/ and identify the staging repository.
59
+ 1 . Sanity check its contents.
60
+ 1 . Release staging repository to Maven and send out release announcement.
0 commit comments