1
0
forked from MTSR/mapserver

release script

This commit is contained in:
Thomas Rudin 2019-03-27 14:24:40 +01:00
parent 652707984c
commit 4d1b36dc57
2 changed files with 34 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
output
.releasetoken

33
release.sh Executable file
View File

@ -0,0 +1,33 @@
#!/bin/sh
VERSION=$1
test -z "$VERSION" &&{
echo "Usage: $0 <version>"
exit 1
}
make clean all
git tag $VERSION
export GITHUB_TOKEN=`cat .releasetoken`
gothub="go run github.com/itchio/gothub"
gothub_release="$gothub release --user thomasrudin-mt --repo mapserver"
gothub_upload="$gothub upload --user thomasrudin-mt --repo mapserver"
$gothub_release --tag $VERSION --name "Version $VERSION"
FILES="mapserver-linux-arm mapserver-linux-x86 mapserver-linux-x86_64 mapserver-mod.zip mapserver-windows-x86-64.exe mapserver-windows-x86.exe"
for file in $FILES
do
$gothub_upload --tag $VERSION --name "$file" --file output/$file
done
git push --tags