mirror of https://github.com/kami-blue/client
10 lines
343 B
Bash
Executable File
10 lines
343 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Send message with branch name
|
|
curl -H "Content-Type: application/json" -X POST -d '{"username": "Github Actions", "content": "**Branch:** '$BRANCH'"}' "$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"
|