mirror of
https://github.com/kami-blue/client
synced 2025-01-26 08:42:44 +00:00
seperate name and upload scripts
This commit is contained in:
parent
49238c943e
commit
c9e3bc67bd
@ -16,4 +16,5 @@ deploy:
|
||||
tags: true
|
||||
after_success:
|
||||
- chmod +x scripts/hook.sh
|
||||
- "./scripts/hook.sh"
|
||||
- "./scripts/hookName.sh"
|
||||
- "./scripts/hookUpload.sh"
|
||||
|
@ -1,7 +1,4 @@
|
||||
#!/bin/bash
|
||||
CURDIR="$(readlink -f ./build/libs/)"
|
||||
JARDIR="$(ls "$CURDIR" | grep "release")"
|
||||
BRANCH="$(git branch | grep "*")"
|
||||
BRANCH="${BRANCH:2}"
|
||||
curl -H "Content-Type: application/json" -X POST -d '{"username": "Github Actions", "content": "**Branch:** `'$BRANCH'`"}' "$WEBHOOK"
|
||||
curl -F content=@""$CURDIR"/"$JARDIR"" "$WEBHOOK"
|
4
scripts/hookUpload.sh
Executable file
4
scripts/hookUpload.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
CURDIR="$(readlink -f ./build/libs/)"
|
||||
JARDIR="$(ls "$CURDIR" | grep "release")"
|
||||
curl -F content=@""$CURDIR"/"$JARDIR"" "$WEBHOOK"
|
Loading…
Reference in New Issue
Block a user