How to publish artifacts in Travis CI?

后端 未结 10 1866
一向
一向 2020-12-07 16:47

I would like to use Travis CI for my open-source project. The issue that Travis doesn\'t provide any ways to publish produced artifacts (though, they have this in their futu

10条回答
  •  独厮守ぢ
    2020-12-07 17:17

    The integration SBT-Travis-Sonatype consists of the following main steps:

    1. Adding sbt-pgp plugin;
    2. Generating key pair for signing your artifacts and publishing it on a public key server;
    3. Encrypting the key pair and sonatype credential files and adding them to your project;
    4. Creating travis configuration and adding the encrypted key used by Travis to unpack your secret files.

    I put together a simple instruction on how to integrate SBT with Travis-CI and Sonatype, it is available here and contains the necessary steps from configuring the project plugins to encrypting the files and providing Travis configuration. It is mostly based on John Duffel’s developer blog combined with sbt-pgp reference docs.

提交回复
热议问题