mirror of
https://github.com/kami-blue/client
synced 2025-02-20 23:27:14 +00:00
Fixed Impact Incompatibility (Hopefully)
- Made Travis (hopefully) publish the jar under "kamiblue" and not "client". Remains to be seen. - Updated Branch References
This commit is contained in:
parent
a0e3e5a5c3
commit
0041a9d5c6
@ -18,9 +18,9 @@ Please contact me at `bella#1111` on Discord, or email me at `bella.who.two@gmai
|
||||
[](https://discord.gg/KfpqwZB)
|
||||
[](https://github.com/kami-blue/client/releases)
|
||||
|
||||
[](https://travis-ci.com/kami-blue/client)
|
||||
[](https://travis-ci.com/kami-blue/client)
|
||||
[](https://discord.gg/KfpqwZB)
|
||||
[](https://github.com/kami-blue/client/releases)
|
||||
[](https://github.com/kami-blue/client/releases)
|
||||
|
||||
[](https://paypal.me/bellawhotwo)
|
||||
[](https://www.blockchain.com/btc/address/19pH4aNZZMPJkqQ2826BauRokyBs1NYon7)
|
||||
|
@ -5,14 +5,18 @@ if [[ "$TRAVIS_PULL_REQUEST" == "true" ]]; then exit 0; else echo "">/dev/null;
|
||||
COMMIT_TRIM="${TRAVIS_COMMIT::7}"
|
||||
COMMIT_MSG="$TRAVIS_COMMIT_MESSAGE"
|
||||
|
||||
if [[ "$BRANCH" == "feature/master" ]]; then
|
||||
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"
|
||||
|
||||
# Upload the release file
|
||||
BUILD_DIR="$(readlink -f ./build/libs/)"
|
||||
JAR_DIR="$(ls "$BUILD_DIR" | grep "release")"
|
||||
curl -F content=@"$BUILD_DIR/$JAR_DIR" "$WEBHOOK"
|
||||
|
||||
mv JAR_DIR BUILD_DIR/kamiblue-1.12.2-${TRAVIS_COMMIT}.jar
|
||||
JAR_DIR=BUILD_DIR/kamiblue-1.12.2-${TRAVIS_COMMIT}.jar
|
||||
|
||||
curl -F content=@"$JAR_DIR" "$WEBHOOK"
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user