mirror of
https://github.com/kami-blue/client
synced 2025-04-08 18:53:51 +00:00
18 lines
725 B
Bash
Executable File
18 lines
725 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CUR_VER="$(tail -c +2 ./scripts/curVer)"
|
|
COMMIT_TRIM="$(git log --format=%h -1)"
|
|
COMMIT_FULL="$(git log --format=%H -1)"
|
|
COMMIT_MSG="$(git log --format=%s -1)"
|
|
|
|
# Send message with branch name
|
|
curl -H "Content-Type: application/json" -X POST -d '{"embeds": [{"title": "","color": 10195199,"description": "description"}]}' "$WEBHOOK"
|
|
|
|
# Find the release file and rename it to kamiblue-version-commit-release.jar
|
|
#BUILD_DIR="$(readlink -f ./build/libs/)"
|
|
#JAR_DIR="$(ls "$BUILD_DIR" | grep "release")"
|
|
#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"
|