fix: deploy script

This commit is contained in:
iceBear67 committed 2024-09-02 01:21:00 +08:00
1 parent da38437368
commit 001216db31
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -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
View File
@@ -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"