Skip to content

Commit 8b183f9

Browse files
committed
Added "tag" command to build.sh.
1 parent 0ad5f95 commit 8b183f9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ MANIFEST_IN="$SRC/manifest.json"
66
MANIFEST_OUT="$BUILD/manifest.json"
77

88
VER=$(grep '"version":' "$SRC/manifest.json" | sed -re 's/.*": "(.*?)".*/\1/')
9+
if [ "$1" == "tag" ]; then
10+
echo "Tagging at $VER"
11+
git tag -a "$VER" && git push origin "$VER"
12+
exit 0
13+
fi
914
XPI_DIR="$BASE/xpi"
1015
XPI="$XPI_DIR/noscript-$VER"
1116
LIB="$SRC/lib"

0 commit comments

Comments
 (0)