Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Release Steps

Alexander Myltsev edited this page Sep 25, 2018 · 20 revisions

Prerequisite

You should tune environment according to http://www.joescii.com/2014/02/24/oss-scala-starter-kit/

Update version strings:

replace "0.4.2" "0.4.3" -- README.rst examples/spark/README.rst build.sbt .circleci/config.yml

Sonatype Release

sbt -Drelease=true ";+ parser/publishSigned ;sonatypeRelease"

Manually (obsolete):

  1. sbt -Drelease=true "+ parser/publishSigned"
  2. close and then release repos at https://oss.sonatype.org/#stagingRepositories
  3. check artefacts at Sonatype index: https://oss.sonatype.org/content/repositories/releases/org/globalnames/

Github Release

Filter GitHub issues with is:issue is:closed closed:>2018-08-06 to find out which issues were closed since the last release. Update the CHANGELOG.

Update READMEs, create git tag, push to upstream.

Assembly artefacts:

$ sbt -Drelease=true ";parser/assembly;runner/universal:packageBin"
$ export GNPARSER_VERSION=0.3.2 # parser current version

Optionally copy to local folder:

$ mkdir release-${GNPARSER_VERSION}
$ cp ./runner/target/universal/gnparser-${GNPARSER_VERSION}.zip ./release-${GNPARSER_VERSION}
$ cp ./parser/target/scala-2.11/gnparser-assembly-${GNPARSER_VERSION}.jar ./release-${GNPARSER_VERSION}

Upload release-${GNPARSER_VERSION} contents to gnparser releases with github-release:

$ export GITHUB_TOKEN=<<<YOUR_TOKEN>>>
$ github-release release --user GlobalNamesArchitecture --repo gnparser \
    --name release-${GNPARSER_VERSION} --tag release-${GNPARSER_VERSION} \
    --description "$(cat CHANGELOG.md | head -n $(expr `grep -n 'Version 0.' CHANGELOG.md | cut -f1 -d: | sed -n 2p` - 2) | tail -n+4)"
$ github-release upload --user GlobalNamesArchitecture --repo gnparser \
    --tag release-${GNPARSER_VERSION} --name gnparser-${GNPARSER_VERSION}.zip \
    --file ./runner/target/universal/gnparser-${GNPARSER_VERSION}.zip
$ # We don't ship fat jar anymore
$ # github-release upload --user GlobalNamesArchitecture --repo gnparser \
    --tag release-${GNPARSER_VERSION} --name gnparser-assembly-${GNPARSER_VERSION}.jar \
    --file ./parser/target/scala-2.11/gnparser-assembly-${GNPARSER_VERSION}.jar

Docker

$ docker login # login to docker-hub as there is no way to do it in sbt
$ sbt ";set dockerUpdateLatest in runner := true ;runner/docker:publish"
Clone this wiki locally