- Have cocoapods installed
- Have ownership privileges to update the cocoapods trunk spec
- Have credentials for Sonatype
Steps to release the Tangram ES iOS Framework to Cocoapods and release the Android AAR to Maven Central:
For the Android library, remove -SNAPSHOT
from the version name in gradle.properties
.
GROUP=com.mapzen.tangram
VERSION_NAME=1.0.0
For the iOS framework, remove -dev
from the version name in iOS.framework.cmake
:
set(FRAMEWORK_VERSION "1.0.0")
And increment the version number in Tangram-es.podspec
:
s.version = '1.0.0'
For desktop apps, update the version number in core/include/tangram.h
Commit and push to master.
$ git commit -m "Release 1.0.0"
$ git push
Tag the commit with the release version and push the tag to GitHub.
$ git tag 1.0.0
$ git push origin 1.0.0
For the Android library, update the version name and restore -SNAPSHOT
to prepare the next development cycle.
GROUP=com.mapzen.tangram
VERSION_NAME=1.0.1-SNAPSHOT
For the iOS framework, update the version name and restore -dev
in iOS.framework.cmake
:
set(FRAMEWORK_VERSION "1.0.1-dev")
Commit and push to master.
$ git commit -m "Prepare next development cycle"
$ git push
Once CircleCI completes the tag build, run pod spec lint
in the directory containing Tangram-es.podspec
to validate the Podspec.
Push the podspec to trunk:
pod trunk push Tangram-es.podspec
Once Travis CI completes the release build, log into Sonatype Staging Repository and promote the artifact to production. For more information see the Sonatype OSSRH Guide.
Note: It can several hours for a newly promoted artifact to appear in Maven Central.
Document release notes at https://github.com/tangrams/tangram-es/releases.