mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
c75f3e0f59
[ci skip]
Former-commit-id: 68fc4cab3e092dbf192f02a7b69cd1024be6095e [formerly af8599c8c136f466f33b3060c1aa0568054617fc] [formerly fcce660652925df3b7837a503114380f6eab269e [formerly 32106b537d
]]
Former-commit-id: 42514c2f46abf0ec4533ed44edb2ed16ff1220da [formerly 0bf28005af9a16de599a99d7c0fc543b5208729f]
Former-commit-id: 2f1b4cbd7bce86943ceca8a3f0834a1ac81edb45
26 lines
453 B
Bash
26 lines
453 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
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 "chore: 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 "chore: setting untracked version [ci skip]"
|
|
git push
|
|
|
|
echo "Done!"
|