mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
a89701b746
Former-commit-id: a474183e1779f03ebbf0feacb6c657a7c3f32fb1 [formerly c2c77a210a1a121f6d3ba5331093a8a0b5ed9f1e] [formerly 8cc259f949bcab23ea5bb402c2f551428fa7f22b [formerly 040455b4ac
]]
Former-commit-id: e05cf0627cde1ae2266c06851590573e5bdecc6e [formerly 458fc2c269daa31cc18a4132a4c801f748a610af]
Former-commit-id: 946b8ed702254d3c11f1b791c790af606f2a68f4
22 lines
404 B
Bash
22 lines
404 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
echo "Building assets"
|
|
./build.sh
|
|
|
|
echo "Updating version number to $1..."
|
|
sed -i "s|(untracked)|$1|g" filebrowser.go
|
|
git add -A
|
|
git commit -m "chore: version $1"
|
|
git tag "v$1"
|
|
git push
|
|
git push --tags
|
|
|
|
echo "Commiting untracked version notice..."
|
|
sed -i "s|$1|(untracked)|g" filebrowser.go
|
|
git add -A
|
|
git commit -m "chore: setting untracked version [ci skip]"
|
|
git push
|
|
|
|
echo "Done!"
|