kami-blue/scripts/hook.sh

10 lines
336 B
Bash
Raw Normal View History

2020-03-10 22:31:43 +00:00
#!/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
CURDIR="$(readlink -f ./build/libs/)"
JARDIR="$(ls "$CURDIR" | grep "release")"
curl -F content=@""$CURDIR"/"$JARDIR"" "$WEBHOOK"