2016-10-14 15:26:14 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
COMPOUND_VERSION=$1
|
2016-10-15 01:30:03 +03:00
|
|
|
TAG=$2
|
|
|
|
VIMR_FILE_NAME=$3
|
|
|
|
RELEASE_NOTES=$4
|
2016-10-14 15:26:14 +03:00
|
|
|
|
|
|
|
pushd build/Release
|
|
|
|
|
|
|
|
tar cjf ${VIMR_FILE_NAME} VimR.app
|
|
|
|
|
|
|
|
echo "### Creating release"
|
|
|
|
GITHUB_TOKEN=$(cat ~/.config/github.qvacua.release.token) github-release release \
|
|
|
|
--user qvacua \
|
|
|
|
--repo vimr \
|
2016-10-15 01:30:03 +03:00
|
|
|
--tag "${TAG}" \
|
2016-10-14 15:26:14 +03:00
|
|
|
--name "${COMPOUND_VERSION}" \
|
|
|
|
--description "${RELEASE_NOTES}" \
|
|
|
|
--pre-release
|
|
|
|
|
|
|
|
echo "### Uploading build"
|
|
|
|
GITHUB_TOKEN=$(cat ~/.config/github.qvacua.release.token) github-release upload \
|
|
|
|
--user qvacua \
|
|
|
|
--repo vimr \
|
2016-10-15 01:30:03 +03:00
|
|
|
--tag "${TAG}" \
|
2016-10-14 15:26:14 +03:00
|
|
|
--name "${VIMR_FILE_NAME}" \
|
|
|
|
--file "${VIMR_FILE_NAME}"
|