diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a3db272..4ba486f 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -22,15 +22,15 @@ jobs: - name: Create latest.zip run: | set -e - # ensure a small staging dir for upload - mkdir -p dist + # ensure a small staging dir for upload (absolute path so later cd won't affect it) + mkdir -p "$GITHUB_WORKSPACE/dist" # install zip utility (container may not have it) apt-get update && apt-get install -y zip # create latest.zip containing the assets directory (so zip root contains 'assets/') cd app/src/main zip -r "$GITHUB_WORKSPACE/latest.zip" assets - # move zip into dist so the FTP action can upload just that file - mv "$GITHUB_WORKSPACE/latest.zip" dist/ + # move zip into the workspace dist so the FTP action can upload just that file + mv "$GITHUB_WORKSPACE/latest.zip" "$GITHUB_WORKSPACE/dist/" - name: Upload latest.zip via FTP to releases uses: SamKirkland/FTP-Deploy-Action@v4.3.4