fix: deploy script
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -43,8 +43,8 @@ jobs:
|
||||
API_ENDPOINT: ${{ secrets.API_ENDPOINT }}
|
||||
SERVER_ID: ${{ secrets.SERVER_ID }}
|
||||
TOKEN: ${{ secrets.TOKEN }}
|
||||
UPLOAD: "/home/runner/sfcraft/build/libs"
|
||||
UPLOAD_DIR: "../build/libs"
|
||||
run: |
|
||||
cd scripts
|
||||
chmod +x ./special_curl.sh
|
||||
chmod +x ./special_curl
|
||||
sh ./update.sh
|
||||
+2
-1
@@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
UPLOAD=$(ls $UPLOAD | tr ' ' '\n' | grep -v "all")
|
||||
export PATH="$PATH:$(pwd)"
|
||||
UPLOAD="$UPLOAD_DIR/$(ls $UPLOAD_DIR | tr ' ' '\n' | grep -v "all")"
|
||||
|
||||
if ! test -f "$UPLOAD"; then
|
||||
echo "File does not exist. $UPLOAD"
|
||||
|
||||
Reference in new issue
Block a user