Skip to content

Commit eb27eff

Browse files
authored
Tag based publishing setup details
1 parent 0652431 commit eb27eff

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,28 @@ The following settings are also available:
7474
depending on the Scala version
7575
- `disablePublishing` is useful for multi-project builds for projects that should not be published
7676

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+
- Email: "[email protected]"
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+
7799
## Cutting a new release (of this plugin)
78100

79101
### Release notes

0 commit comments

Comments
 (0)