2017-09-03 17:41:14 +08:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
echo "Building assets"
|
|
|
|
./build.sh
|
|
|
|
|
2017-09-03 17:50:49 +08:00
|
|
|
echo "Updating version number to $1..."
|
|
|
|
sed -i "s|(untracked)|$1|g" filemanager.go
|
|
|
|
|
2017-09-03 17:41:14 +08:00
|
|
|
echo "Commiting..."
|
|
|
|
git add -A
|
|
|
|
git commit -m "Version $1"
|
|
|
|
git push
|
|
|
|
|
|
|
|
echo "Creating the tag..."
|
|
|
|
git tag "v$1"
|
|
|
|
git push --tags
|
|
|
|
|
|
|
|
echo "Commiting untracked version notice..."
|
2017-09-03 17:50:49 +08:00
|
|
|
sed -i "s|$1|(untracked)|g" filemanager.go
|
2017-09-03 17:41:14 +08:00
|
|
|
git add -A
|
2017-09-03 17:54:48 +08:00
|
|
|
git commit -m "[ci skip] auto: setting untracked version"
|
2017-09-03 17:41:14 +08:00
|
|
|
git push
|
|
|
|
|
|
|
|
echo "Done!"
|