File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,28 @@ The following settings are also available:
74
74
depending on the Scala version
75
75
- ` disablePublishing ` is useful for multi-project builds for projects that should not be published
76
76
77
+ ## Set up tag-based publishing
78
+
79
+ The instructions here are a sumamry of the readme in https://github.com/olafurpg/sbt-ci-release
80
+ - Create a fresh GPG key: ` gpg --gen-key `
81
+ - Real name: use "project-name bot"
82
+
83
+ - Passphrase: generate one yourself
84
+ - Get the key ` LONG_ID ` from the output and set ` LONG_ID=6E8ED79B03AD527F1B281169D28FC818985732D9 `
85
+
86
+ pub rsa2048 2018-06-10 [SC] [expires: 2020-06-09]
87
+ $LONG_ID
88
+ - Copy the public key to a key server
89
+ - ` gpg --armor --export $LONG_ID `
90
+ - http://keyserver.ubuntu.com:11371/
91
+ - Open the Settings panel on your project's travis, define four secret env vars
92
+ - ` PGP_PASSPHRASE ` the passphrase you chose above
93
+ - ` PGP_SECRET ` the secret key in base64
94
+ - macOS: ` gpg --armor --export-secret-keys $LONG_ID | base64 `
95
+ - ubuntu: ` gpg --armor --export-secret-keys $LONG_ID | base64 -w0 `
96
+ - ` SONATYPE_PASSWORD ` : need that one
97
+ - ` SONATYPE_USERNAME ` : that one too
98
+
77
99
## Cutting a new release (of this plugin)
78
100
79
101
### Release notes
You can’t perform that action at this time.
0 commit comments