mirror of
https://github.com/kami-blue/client
synced 2025-02-09 16:57:11 +00:00
Added delays to hook to make it more reliable
This commit is contained in:
parent
9f35d78e4f
commit
900b8788b4
@ -14,11 +14,13 @@ CHANGELOG_FULL="$(git log --format=%s $COMMIT_TRIM...$COMMIT_LAST | sed ':a;N;$!
|
||||
# delete the release in case it exists
|
||||
git tag -d $CUR_VER-$COMMIT_TRIM
|
||||
git push origin :refs/tags/$CUR_VER-$COMMIT_TRIM
|
||||
sleep 2
|
||||
|
||||
# Upload the release
|
||||
cd ~/
|
||||
source ~/.profile
|
||||
./github-release-linux-amd64 $CUR_VER-$COMMIT_TRIM $BUILD_DIR/$JAR_DIR --commit master --tag $CUR_VER-$COMMIT_TRIM --github-repository $GITHUB_RELEASE_REPOSITORY --github-access-token $GITHUB_RELEASE_ACCESS_TOKEN
|
||||
sleep 5
|
||||
|
||||
# Send message with commit information
|
||||
curl -H "Content-Type: application/json" -X POST -d '{"embeds": [{"title": "Download v'$CUR_VER\-$COMMIT_TRIM'","color": 10195199,"description": "[**DOWNLOAD**](https://github.com/kami-blue/nightly-releases/releases/download/'$CUR_VER\-$COMMIT_TRIM'/'${JAR_DIR}')\n\n**Changelog:** \n- '"$CHANGELOG_FULL"'\n\nDiff: ['$COMMIT_LAST'...'${COMMIT_TRIM}'](https://github.com/kami-blue/client/compare/'$COMMIT_LAST_FULL'...'$COMMIT_FULL') "}]}' "$WEBHOOK"
|
||||
@ -26,6 +28,7 @@ curl -H "Content-Type: application/json" -X POST -d '{"embeds": [{"title": "Down
|
||||
cd ~/website/
|
||||
|
||||
git pull
|
||||
sleep 1
|
||||
sed -i "s|beta_jar_url:.*|beta_jar_url: https://github.com/kami-blue/nightly-releases/releases/download/${CUR_VER}-${COMMIT_TRIM}/${JAR_DIR}|g" docs/_config.yml
|
||||
sed -i "s|beta_ver:.*|beta_ver: v${CUR_VER}-${COMMIT_TRIM}|g" docs/_config.yml
|
||||
git commit -a -m "bump ver to v${CUR_VER}-${COMMIT_TRIM}"
|
||||
|
Loading…
Reference in New Issue
Block a user