2017-09-03 09:41:14 +00:00
|
|
|
#!/bin/bash
|
2018-01-05 10:15:26 +00:00
|
|
|
set -e
|
2017-09-03 09:41:14 +00:00
|
|
|
|
|
|
|
echo "Building assets"
|
|
|
|
./build.sh
|
|
|
|
|
2017-09-03 09:50:49 +00:00
|
|
|
echo "Updating version number to $1..."
|
2018-02-01 13:38:43 +00:00
|
|
|
sed -i "s|(untracked)|$1|g" filebrowser.go
|
2017-09-03 09:50:49 +00:00
|
|
|
|
2017-09-03 09:41:14 +00:00
|
|
|
echo "Commiting..."
|
|
|
|
git add -A
|
2018-01-05 10:15:26 +00:00
|
|
|
git commit -m "chore: version $1"
|
2017-09-03 09:41:14 +00:00
|
|
|
git push
|
|
|
|
|
|
|
|
echo "Creating the tag..."
|
|
|
|
git tag "v$1"
|
|
|
|
git push --tags
|
|
|
|
|
|
|
|
echo "Commiting untracked version notice..."
|
2018-02-01 13:38:43 +00:00
|
|
|
sed -i "s|$1|(untracked)|g" filebrowser.go
|
2017-09-03 09:41:14 +00:00
|
|
|
git add -A
|
2018-01-05 10:15:26 +00:00
|
|
|
git commit -m "chore: setting untracked version [ci skip]"
|
2017-09-03 09:41:14 +00:00
|
|
|
git push
|
|
|
|
|
|
|
|
echo "Done!"
|