2017-09-03 17:41:14 +08:00
|
|
|
#!/bin/bash
|
2018-01-05 18:15:26 +08:00
|
|
|
set -e
|
2017-09-03 17:41:14 +08:00
|
|
|
|
2018-06-07 04:02:00 +08:00
|
|
|
cd $(dirname $0)
|
|
|
|
|
2017-09-03 17:41:14 +08:00
|
|
|
echo "Building assets"
|
2018-06-07 04:02:00 +08:00
|
|
|
./build/build_assets.sh
|
2017-09-03 17:41:14 +08:00
|
|
|
|
2017-09-03 17:50:49 +08:00
|
|
|
echo "Updating version number to $1..."
|
2018-02-01 21:38:43 +08:00
|
|
|
sed -i "s|(untracked)|$1|g" filebrowser.go
|
2017-09-03 17:41:14 +08:00
|
|
|
git add -A
|
2018-01-05 18:15:26 +08:00
|
|
|
git commit -m "chore: version $1"
|
2017-09-03 17:41:14 +08:00
|
|
|
git tag "v$1"
|
2018-02-01 21:40:37 +08:00
|
|
|
git push
|
2017-09-03 17:41:14 +08:00
|
|
|
git push --tags
|
|
|
|
|
|
|
|
echo "Commiting untracked version notice..."
|
2018-02-01 21:38:43 +08:00
|
|
|
sed -i "s|$1|(untracked)|g" filebrowser.go
|
2017-09-03 17:41:14 +08:00
|
|
|
git add -A
|
2018-01-05 18:15:26 +08:00
|
|
|
git commit -m "chore: setting untracked version [ci skip]"
|
2017-09-03 17:41:14 +08:00
|
|
|
git push
|
|
|
|
|
|
|
|
echo "Done!"
|