chore: update build and publish scripts

[ci skip]
pull/329/head
Henrique Dias 2018-01-05 10:15:26 +00:00
parent 1218966226
commit 32106b537d
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
set -e
# Install rice tool if not present # Install rice tool if not present
if ! [ -x "$(command -v rice)" ]; then if ! [ -x "$(command -v rice)" ]; then

View File

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
set -e
echo "Building assets" echo "Building assets"
./build.sh ./build.sh
@ -8,7 +9,7 @@ sed -i "s|(untracked)|$1|g" filemanager.go
echo "Commiting..." echo "Commiting..."
git add -A git add -A
git commit -m "Version $1" git commit -m "chore: version $1"
git push git push
echo "Creating the tag..." echo "Creating the tag..."
@ -18,7 +19,7 @@ git push --tags
echo "Commiting untracked version notice..." echo "Commiting untracked version notice..."
sed -i "s|$1|(untracked)|g" filemanager.go sed -i "s|$1|(untracked)|g" filemanager.go
git add -A git add -A
git commit -m "[ci skip] auto: setting untracked version" git commit -m "chore: setting untracked version [ci skip]"
git push git push
echo "Done!" echo "Done!"