Clone in a terminal:
Commit 85f9bfe
Johan Mattsson - 2015-09-12T17:42:54+00:00
85f9bfeb615153445f5151c5594af8fb1640b288johan.mattsson.m@gmail.com

More release scripting

Changed files (1)

Diff

diff --git a/scripts/release.sh b/scripts/release.shindex 183bb29..dcfc34a 100755--- a/scripts/release.sh+++ b/scripts/release.sh@@ -14,6 +14,13 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. +if ! git diff --exit-code > /dev/null; then+	echo "Uncommitted changes, commit before creating the release."+	exit 1+fi++git push+ rep="$(pwd)"  mkdir -p build@@ -68,6 +75,6 @@ rm -rf ../export/birdfont-$version # tag the release on github  # read github token and remove new line-token=$(cat ../../../github.token | sed -z 's/\n//g')+token=$(cat ../../github.token | sed -z 's/\n//g') curl --data '{"tag_name": "v$version","target_commitish": "master","name": "v$version","body": "Version $version","draft": false,"prerelease": false}' \ 	https://api.github.com/repos/johanmattssonm/birdfont.git?access_token=$token

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112