Skip to content
This repository has been archived by the owner on Jul 26, 2022. It is now read-only.

Creating a release

binwiederhier edited this page Dec 9, 2014 · 13 revisions

This is a page to remind us how to do a release.

Core Release

  1. Run all tests on develop
  2. Update the CHANGELOG:
  • References to issues
  • Date of the release
  1. Then run these commands; the rest should be Travis magic
git checkout develop   (!!!!!)
  // Update CHANGELOG.md (don't forget the date)
  // Update build.gradle (version number)
git pull
git flow release start 0.1.1-alpha
// Do some last minute changes
git flow release finish 0.1.1-alpha
git push --tags
git push

After that:

  1. Update the releases page (binary upload, changelog info)
  2. Travis will build master AND develop, so the develop build should be cancelled manually.

Plugin Release

git checkout develop
  // Update CHANGELOG.md (don't forget the date)
  // Update build.gradle (version number)
git pull
git subtree pull --prefix=core coreorigin develop --squash
git flow release start plugin-sftp/v0.1.0-alpha
git flow release finish plugin-sftp/v0.1.0-alpha

Because of the subtree, this creates a tag vplugin-sftp/v0.1.0-alpha. This needs to be manually corrected:

$ git tag
...
vplugin-sftp/v0.1.0-alpha

git tag -d vplugin-sftp/v0.1.0-alpha
git tag plugin-sftp/v0.1.0-alpha
git push --tags
git push

Full process:

git checkout develop   (!!!!!)
vi build.gradle
  > bump version
  
git add -u
git commit -m"Bump version"
git subtree pull --prefix=core coreorigin master --squash      (master!!)
gradle clean pluginJar; sy plugin remove sftp; sy plugin install build/libs/*.jar
sydev plugin list
sydev init
git flow release start plugin-ftp/v0.1.8-alpha
git flow release finish plugin-ftp/v0.1.8-alpha
   > Syncany FTP Plugin v0.1.8-alpha

git tag -d vplugin-ftp/v0.1.8-alpha 
git tag plugin-ftp/v0.1.8-alpha 
git push --tags
git push

((Then stop Travis-CI for 'develop'))

Reverting a release

git tag -d <releasetag>
git checkout master
git reset --hard HEAD^
git checkout develop
git reset --hard HEAD^
git push --force
git push origin :<releasetag>