filebrowser/publish.sh

25 lines
421 B
Bash
Raw Normal View History

2017-09-03 09:41:14 +00:00
#!/bin/bash
echo "Building assets"
./build.sh
echo "Updating version number to $1..."
sed -i "s|(untracked)|$1|g" filemanager.go
2017-09-03 09:41:14 +00: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..."
sed -i "s|$1|(untracked)|g" filemanager.go
2017-09-03 09:41:14 +00:00
git add -A
git commit -m "untracked version `date`"
git push
echo "Done!"