mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-26 23:36:08 +03:00
30 lines
636 B
Bash
Executable File
30 lines
636 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
COMPOUND_VERSION=$1
|
|
TAG=$2
|
|
VIMR_FILE_NAME=$3
|
|
RELEASE_NOTES=$4
|
|
|
|
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 "${TAG}" \
|
|
--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 "${TAG}" \
|
|
--name "${VIMR_FILE_NAME}" \
|
|
--file "${VIMR_FILE_NAME}"
|