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!"