mirror of
https://github.com/kami-blue/client
synced 2025-04-18 13:25:16 +00:00
comment out webhook shit
This commit is contained in:
parent
36a5e54747
commit
e721c9f785
@ -8,7 +8,7 @@ COMMIT_MSG="$TRAVIS_COMMIT_MESSAGE"
|
||||
|
||||
if [[ "$BRANCH" == "master" ]]; then
|
||||
# Send message with branch name
|
||||
curl -H "Content-Type: application/json" -X POST -d '{"embeds": [{"title": "","color": 10195199,"description": "**Changelog:** '"$COMMIT_MSG"'\nBranch: `'"$BRANCH"'`\nCommit: ['${COMMIT_TRIM}'](https://github.com/kami-blue/client/commits/'${COMMIT_TRIM}') Direct: ['${COMMIT_TRIM}'](https://github.com/kami-blue/client/commit/'${TRAVIS_COMMIT}') "}]}' "$WEBHOOK"
|
||||
#curl -H "Content-Type: application/json" -X POST -d '{"embeds": [{"title": "","color": 10195199,"description": "**Changelog:** '"$COMMIT_MSG"'\nBranch: `'"$BRANCH"'`\nCommit: ['${COMMIT_TRIM}'](https://github.com/kami-blue/client/commits/'${COMMIT_TRIM}') Direct: ['${COMMIT_TRIM}'](https://github.com/kami-blue/client/commit/'${TRAVIS_COMMIT}') "}]}' "$WEBHOOK"
|
||||
|
||||
# Find the release file and rename it to kamiblue-version-commit-release.jar
|
||||
BUILD_DIR="$(readlink -f ./build/libs/)"
|
||||
@ -16,7 +16,7 @@ if [[ "$BRANCH" == "master" ]]; then
|
||||
mv ${BUILD_DIR}/${JAR_DIR} ${BUILD_DIR}/kamiblue-${CUR_VER}-${COMMIT_TRIM}-release.jar
|
||||
JAR_DIR="$(ls "$BUILD_DIR" | grep "release")"
|
||||
# Upload the release file
|
||||
curl -F content=@"$BUILD_DIR/$JAR_DIR" "$WEBHOOK"
|
||||
#curl -F content=@"$BUILD_DIR/$JAR_DIR" "$WEBHOOK"
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user