mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
c236db329f
Former-commit-id: 0d8cdc850ea970ecb73bb6ce5af85ca517dabba2 [formerly 9adaffca71250d6e350914e90965ea07198be2f0] [formerly 4c982e090fe2809829c35d574b75023ec384ba26 [formerly 59bd6e97bf
]]
Former-commit-id: 959919b2c265757a9dde9f34ae06373468ebae0a [formerly 120c5d413404a70885ea597d93469cc3b93bf26a]
Former-commit-id: ebf8abfcf0003babcad11185da96dede783d25a9
25 lines
421 B
Bash
25 lines
421 B
Bash
#!/bin/bash
|
|
|
|
echo "Building assets"
|
|
./build.sh
|
|
|
|
echo "Updating version number to $1..."
|
|
sed -i "s|(untracked)|$1|g" filemanager.go
|
|
|
|
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
|
|
git add -A
|
|
git commit -m "untracked version `date`"
|
|
git push
|
|
|
|
echo "Done!"
|