1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-11-25 06:06:21 +03:00
vimr/bin/create_github_release.sh

27 lines
647 B
Bash
Raw Normal View History

2016-10-14 15:26:14 +03:00
#!/bin/bash
COMPOUND_VERSION=$1
2016-10-14 16:58:58 +03:00
VIMR_FILE_NAME=$2
RELEASE_NOTES=$3
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 \
--tag "${COMPOUND_VERSION}" \
--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 \
--tag "${COMPOUND_VERSION}" \
--name "${VIMR_FILE_NAME}" \
--file "${VIMR_FILE_NAME}"