mirror of
https://github.com/qvacua/vimr.git
synced 2024-11-24 19:47:41 +03:00
Add some echos and tag neovim
This commit is contained in:
parent
68cf2e0d27
commit
6005994366
@ -9,6 +9,12 @@ set -e
|
|||||||
|
|
||||||
export PATH=/usr/local/bin:$PATH
|
export PATH=/usr/local/bin:$PATH
|
||||||
|
|
||||||
|
CUR_MARKETING_VERSION=$(./bin/current_marketing_version.sh)
|
||||||
|
CUR_BUNDLE_VERSION=$(./bin/current_bundle_version.sh)
|
||||||
|
RELEASE_VERSION="$CUR_MARKETING_VERSION-$CUR_BUNDLE_VERSION"
|
||||||
|
SNAPSHOT_DATE=$(date +%Y%m%d.%H%M)
|
||||||
|
TAG_NAME=snapshot/${SNAPSHOT_DATE}-${CUR_BUNDLE_VERSION}
|
||||||
|
|
||||||
# delete all (local) tags
|
# delete all (local) tags
|
||||||
git tag | xargs git tag -d
|
git tag | xargs git tag -d
|
||||||
|
|
||||||
@ -40,24 +46,30 @@ cp -r /tmp/nvim/share/nvim/runtime .
|
|||||||
make clean
|
make clean
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
|
echo "### Building neovim"
|
||||||
make libnvim
|
make libnvim
|
||||||
|
|
||||||
|
echo "### Tagging neovim"
|
||||||
|
git tag -a -m "$CUR_MARKETING_VERSION ($CUR_BUNDLE_VERSION)" snapshot/${SNAPSHOT_DATE}-${CUR_BUNDLE_VERSION}
|
||||||
|
|
||||||
|
echo "### Pushing tag to neovim repository"
|
||||||
|
git push origin ${TAG_NAME}
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
echo "### Updating carthage"
|
||||||
carthage update --platform osx
|
carthage update --platform osx
|
||||||
|
|
||||||
./bin/bump_bundle_version.sh
|
./bin/bump_bundle_version.sh
|
||||||
./bin/set_snapshot_date.sh
|
./bin/set_snapshot_date.sh
|
||||||
|
|
||||||
|
echo "### Building VimR"
|
||||||
xcodebuild CODE_SIGN_IDENTITY="Developer ID Application: Tae Won Ha (H96Q2NKTQH)" -configuration Release -target VimR
|
xcodebuild CODE_SIGN_IDENTITY="Developer ID Application: Tae Won Ha (H96Q2NKTQH)" -configuration Release -target VimR
|
||||||
|
|
||||||
CUR_MARKETING_VERSION=$(./bin/current_marketing_version.sh)
|
echo "### Committing version bump"
|
||||||
CUR_BUNDLE_VERSION=$(./bin/current_bundle_version.sh)
|
|
||||||
RELEASE_VERSION="$CUR_MARKETING_VERSION-$CUR_BUNDLE_VERSION"
|
|
||||||
SNAPSHOT_DATE=$(date +%Y%m%d.%H%M)
|
|
||||||
TAG_NAME=snapshot/${SNAPSHOT_DATE}-${CUR_BUNDLE_VERSION}
|
|
||||||
|
|
||||||
git commit -am "Set snapshot version: $RELEASE_VERSION"
|
git commit -am "Set snapshot version: $RELEASE_VERSION"
|
||||||
|
|
||||||
|
echo "### Tagging VimR"
|
||||||
git tag -a -m "$CUR_MARKETING_VERSION ($CUR_BUNDLE_VERSION)" snapshot/${SNAPSHOT_DATE}-${CUR_BUNDLE_VERSION}
|
git tag -a -m "$CUR_MARKETING_VERSION ($CUR_BUNDLE_VERSION)" snapshot/${SNAPSHOT_DATE}-${CUR_BUNDLE_VERSION}
|
||||||
|
|
||||||
pushd build/Release
|
pushd build/Release
|
||||||
@ -68,9 +80,11 @@ tar cjf ${VIMR_FILE_NAME} VimR.app
|
|||||||
tar cjf SwiftNeoVim.framework-${RELEASE_VERSION}.tar.bz2 SwiftNeoVim.framework
|
tar cjf SwiftNeoVim.framework-${RELEASE_VERSION}.tar.bz2 SwiftNeoVim.framework
|
||||||
echo ${RELEASE_VERSION} > "$RELEASE_VERSION"
|
echo ${RELEASE_VERSION} > "$RELEASE_VERSION"
|
||||||
|
|
||||||
|
echo "### Pushing commit and tag to vimr repository"
|
||||||
git push origin HEAD:${BRANCH}
|
git push origin HEAD:${BRANCH}
|
||||||
git push origin ${TAG_NAME}
|
git push origin ${TAG_NAME}
|
||||||
|
|
||||||
|
echo "### Creating release"
|
||||||
GITHUB_TOKEN=$(cat ~/.config/github.qvacua.release.token) github-release release \
|
GITHUB_TOKEN=$(cat ~/.config/github.qvacua.release.token) github-release release \
|
||||||
--user qvacua \
|
--user qvacua \
|
||||||
--repo vimr \
|
--repo vimr \
|
||||||
@ -79,6 +93,7 @@ GITHUB_TOKEN=$(cat ~/.config/github.qvacua.release.token) github-release release
|
|||||||
--description "$RELEASE_NOTES" \
|
--description "$RELEASE_NOTES" \
|
||||||
--pre-release
|
--pre-release
|
||||||
|
|
||||||
|
echo "### Uploading build"
|
||||||
GITHUB_TOKEN=$(cat ~/.config/github.qvacua.release.token) github-release upload \
|
GITHUB_TOKEN=$(cat ~/.config/github.qvacua.release.token) github-release upload \
|
||||||
--user qvacua \
|
--user qvacua \
|
||||||
--repo vimr \
|
--repo vimr \
|
||||||
|
Loading…
Reference in New Issue
Block a user