diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 59688db..04c2440 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/scripts/update.sh b/scripts/update.sh index 221db9b..8c23d18 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -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"