From c75f3e0f5967b194f92d8c424575b59926414c8a Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Fri, 5 Jan 2018 10:15:26 +0000 Subject: [PATCH] chore: update build and publish scripts [ci skip] Former-commit-id: 68fc4cab3e092dbf192f02a7b69cd1024be6095e [formerly af8599c8c136f466f33b3060c1aa0568054617fc] [formerly fcce660652925df3b7837a503114380f6eab269e [formerly 32106b537d5c85b73c97710f2da204a70e8173b8]] Former-commit-id: 42514c2f46abf0ec4533ed44edb2ed16ff1220da [formerly 0bf28005af9a16de599a99d7c0fc543b5208729f] Former-commit-id: 2f1b4cbd7bce86943ceca8a3f0834a1ac81edb45 --- build.sh | 1 + publish.sh | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 813f74fe..93c24656 100644 --- a/build.sh +++ b/build.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e # Install rice tool if not present if ! [ -x "$(command -v rice)" ]; then diff --git a/publish.sh b/publish.sh index e5094248..5bcd6fc7 100644 --- a/publish.sh +++ b/publish.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e echo "Building assets" ./build.sh @@ -8,7 +9,7 @@ sed -i "s|(untracked)|$1|g" filemanager.go echo "Commiting..." git add -A -git commit -m "Version $1" +git commit -m "chore: version $1" git push echo "Creating the tag..." @@ -18,7 +19,7 @@ git push --tags echo "Commiting untracked version notice..." sed -i "s|$1|(untracked)|g" filemanager.go git add -A -git commit -m "[ci skip] auto: setting untracked version" +git commit -m "chore: setting untracked version [ci skip]" git push echo "Done!"