From d89b13bd6d270afe95588f1315a9af6d1388e9f7 Mon Sep 17 00:00:00 2001 From: BenBirt Date: Thu, 11 Jul 2019 10:58:17 +0100 Subject: [PATCH] Increment @dataform package versions. Change publish script to automatically tag the git commit using the correct version. (#295) * Increment @dataform package versions. Change publish script to automatically tag the git commit using the correct version. * lewis comments --- scripts/publish | 4 ++++ version.bzl | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/publish b/scripts/publish index 0f9c802f2..fff07c801 100755 --- a/scripts/publish +++ b/scripts/publish @@ -10,3 +10,7 @@ bazel run //core:package.publish bazel run //cli:package.publish bazel run //crossdb:package.publish bazel run //protos:package.publish + +VERSION=$(cat version.bzl | grep DF_VERSION | awk '{ print $3 }' | sed "s/\"//g") +git tag $VERSION +git push origin $VERSION diff --git a/version.bzl b/version.bzl index 28c61a795..e080eae3e 100644 --- a/version.bzl +++ b/version.bzl @@ -1 +1,3 @@ -DF_VERSION = "1.0.0-alpha.5" +# NOTE: If you change the format of this line, you must change the bash command +# in /scripts/publish to extract the version string correctly. +DF_VERSION = "1.0.0"