Skip to content

Commit

Permalink
Update release guideline.
Browse files Browse the repository at this point in the history
  • Loading branch information
daggerok committed Sep 10, 2018
1 parent 86e7ec7 commit 8846eac
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 65 deletions.
41 changes: 19 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,27 +74,24 @@ before_deploy:
#deploy release artifacts to bintray jcenter and maven central repositories:
- chmod 0600 .gnupg/gpg.conf
#
- test ".${TRAVIS_BRANCH}" != ".release" || echo "deploy drafted release to bintray jcenter"
- test ".${TRAVIS_BRANCH}" != ".release" || mkdir -p ~/.gradle
- test ".${TRAVIS_BRANCH}" != ".release" || echo 'bintrayUser=daggerok' >> ~/.gradle/gradle.properties
- test ".${TRAVIS_BRANCH}" != ".release" || echo "bintrayApiKey=$BINTRAY_API_KEY" >> ~/.gradle/gradle.properties
- test ".${TRAVIS_BRANCH}" != ".release" || ./gradlew clean assemble >/dev/null
- test ".${TRAVIS_BRANCH}" != ".release" || ./gradlew -S :kotlenide:bintrayUpload -m
- test ".${TRAVIS_BRANCH}" != ".release" || ./gradlew -S :kotlenide:bintrayUpload # -x text
- echo "deploy drafted release to bintray jcenter"
- mkdir -p ~/.gradle
- echo 'bintrayUser=daggerok' >> ~/.gradle/gradle.properties
- echo "bintrayApiKey=$BINTRAY_API_KEY" >> ~/.gradle/gradle.properties
- ./gradlew clean assemble >/dev/null
- ./gradlew -S :kotlenide:bintrayUpload -m
- ./gradlew -S :kotlenide:bintrayUpload # -x text
#
- test ".${TRAVIS_BRANCH}" != ".release" || echo "deploy drafted release to maven central"
- |
if [ ".${TRAVIS_BRANCH}" = ".release" ]; then
mkdir -p ~/.gradle
echo 'ossrhUsername=daggerok' >> ~/.gradle/gradle.properties
echo "ossrhPassword=$OSSRH_PASSWORD" >> ~/.gradle/gradle.properties
echo "signing.keyId=$SIGNING_KEY_ID" >> ~/.gradle/gradle.properties
echo "signing.password=$SIGNING_PASSWORD" >> ~/.gradle/gradle.properties
echo "signing.secretKeyRingFile=$(pwd)/.gnupg/secring.gpg" >> ~/.gradle/gradle.properties
./gradlew clean assemble >/dev/null
./gradlew -Si :kotlenide:uploadArchives -Pmaven-central -m
./gradlew -Si :kotlenide:uploadArchives -Pmaven-central # -x test
fi
- echo "deploy drafted release to maven central"
- mkdir -p ~/.gradle
- echo 'ossrhUsername=daggerok' >> ~/.gradle/gradle.properties
- echo "ossrhPassword=$OSSRH_PASSWORD" >> ~/.gradle/gradle.properties
- echo "signing.keyId=$SIGNING_KEY_ID" >> ~/.gradle/gradle.properties
- echo "signing.password=$SIGNING_PASSWORD" >> ~/.gradle/gradle.properties
- echo "signing.secretKeyRingFile=$(pwd)/.gnupg/secring.gpg" >> ~/.gradle/gradle.properties
- ./gradlew clean assemble >/dev/null
- ./gradlew -Si :kotlenide:uploadArchives -Pmaven-central -m
- ./gradlew -Si :kotlenide:uploadArchives -Pmaven-central # -x test
#
- ./gradlew clean
- ./mvnw -Pdocs process-resources >/dev/null
Expand All @@ -107,10 +104,10 @@ deploy:
# travis encrypt GITHUB_TOKEN=<your github repo token> --add
github-token: "$GITHUB_TOKEN"
keep-history: true
on:
branch: master
local-dir: target/generated-docs
target_branch: gh-pages
on:
tags: true

before_cache:
- for item in $(find ~/.gradle -name "*.lock");
Expand Down
4 changes: 4 additions & 0 deletions kotlenide/RELEASE.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,7 @@ echo 'signing.secretKeyRingFile=/Users/mak/.gnupg/secring.gpg' >> ~/.gradle/grad
or follow link:https://central.sonatype.org/pages/releasing-the-deployment.html[these] instructions for details

link:https://www.youtube.com/watch?v=b5D2EBjLp40&feature=youtu.be[see for details YouTube: 04 - Accessing OSS-RH - Easy Publishing to Central Repository]

== publish artifact

To trigger automatic release build and artifacts uploads just publish GitHub release tag
92 changes: 49 additions & 43 deletions kotlenide/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,23 @@ dependencies {
**pom.xml**

```xml
<dependencies>
<dependency>
<groupId>com.github.daggerok</groupId>
<artifactId>kotlenide</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>

<!-- only for bintray jcenter repository use cases -->
<repositories>
<repository>
<id>jcentral</id>
<url>https://jcenter.bintray.com</url>
</repository>
</repositories>
<project>
<dependencies>
<dependency>
<groupId>com.github.daggerok</groupId>
<artifactId>kotlenide</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>

<!-- only for bintray jcenter repository use cases -->
<repositories>
<repository>
<id>jcentral</id>
<url>https://jcenter.bintray.com</url>
</repository>
</repositories>
</project>
```

## other options
Expand All @@ -59,20 +61,22 @@ dependencies {
**pom.xml**

```xml
<repositories>
<repository>
<id>bintray-daggerok</id>
<url>https://dl.bintray.com/daggerok/daggerok</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.github.daggerok</groupId>
<artifactId>kotlenide</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>
<project>
<repositories>
<repository>
<id>bintray-daggerok</id>
<url>https://dl.bintray.com/daggerok/daggerok</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>com.github.daggerok</groupId>
<artifactId>kotlenide</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>
</project>
```
<!--
### jitpack gradle
Expand All @@ -94,19 +98,21 @@ dependencies {
**pom.xml**
```xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.daggerok</groupId>
<artifactId>kotlenide</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>
<project>
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.daggerok</groupId>
<artifactId>kotlenide</artifactId>
<version>0.0.1</version>
</dependency>
</dependencies>
<project>
```
-->

0 comments on commit 8846eac

Please sign in to comment.