Skip to content

Instantly share code, notes, and snippets.

@vmariano
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmariano/af0910ad2b4fcc28c03b to your computer and use it in GitHub Desktop.
Save vmariano/af0910ad2b4fcc28c03b to your computer and use it in GitHub Desktop.
Release flow.
#!/bin/bash
#based on https://github.com/DemocracyOS/app/wiki/How-to-release-a-new-version-of-DemocracyOS
# $1 is the new number version ej: 0.0.2
function release-prepare() {
git checkout -b $1
git-changelog --tag $1
git add History.md
vim History.md
echo 'Now, you can move the version of config files'
}
function release-new-version() {
git-release $1
git checkout master
git merge --ff $1
git checkout development
git merge --no-ff $1
echo 'Now you can push master and development'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment