Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: enable publish to Bintray #472

Merged
merged 5 commits into from
May 26, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name-template: 'Play JSON $NEXT_PATCH_VERSION'
tag-template: '$NEXT_PATCH_VERSION'

change-template: '- $TITLE [#$NUMBER] by [@$AUTHOR](https://github.com/$AUTHOR)'
change-template: '- $TITLE #$NUMBER by [@$AUTHOR](https://github.com/$AUTHOR)'
template: |
## Changes

Expand Down
15 changes: 10 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ jobs:
name: "Code style check. Run locally with: sbt validateCode mimaReportBinaryIssues docs/validateDocs"
script: sbt validateCode mimaReportBinaryIssues docs/validateDocs
env:
- TRAVIS_SCALA_VERSION=2.13.1
- TRAVIS_JDK=11

- stage: test
Expand Down Expand Up @@ -43,17 +42,16 @@ jobs:
- TRAVIS_JDK=8

- stage: publish
name: "TEMPORARY, will become Publish artifacts to Bintray"
script: sbt +mimaReportBinaryIssues
name: "Publish artifacts to Bintray"
script: sbt +publish
env:
- TRAVIS_SCALA_VERSION=2.13.1
- TRAVIS_JDK=11

stages:
- name: check
- name: test
- name: publish
# if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork
if: ((branch = master AND type = push) OR (tag IS present)) AND NOT fork


cache:
Expand All @@ -69,6 +67,13 @@ before_cache:
- find $HOME/.ivy2 -name "ivydata-*.properties" -delete
- find $HOME/.sbt -name "*.lock" -delete

env:
global:
# encrypt with: travis encrypt --pro BIN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RELEASING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Releasing

This is released from the `master` branch from `2.9.0` forward. Unless and older version needs patching, when it is release from the `2.8.x` branch. If there is no branch for the release that needs patching, create it from the tag.
ennru marked this conversation as resolved.
Show resolved Hide resolved

## Cutting the release

### Requires contributor access

- Check the [draft release notes](https://github.com/playframework/play-json/releases) to see if everything is there
- Wait until [master build finished](https://travis-ci.com/github/playframework/play-json/builds) after merging the last PR
- Update the [draft release](https://github.com/playframework/play-json/releases) with the next tag version (eg. `2.9.0`), title and release description
- Check that Travis CI release build has executed successfully (Travis will start a [CI build](https://travis-ci.com/github/playframework/play-json/builds) for the new tag and publish artifacts to Bintray)

### Requires Bintray access

- Go to [Bintray](https://bintray.com/playframework/maven/play-json) and select the just released version
- Go to the Maven Central tab and sync with Sonatype (using your Sonatype TOKEN key and password) (you may watch progress in the [Staging repository](https://oss.sonatype.org/#stagingRepositories))

### Check Maven Central

- The artifacts will become visible at https://repo1.maven.org/maven2/com/typesafe/play/