diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 41b51c2..b50cd5b 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -50,7 +50,7 @@ jobs: - name: Deploy with rsync run: | TARGET_DIR="/var/www/html/${{ steps.package-version.outputs.current-version}}" - rsync -a --rsync-path="mkdir -p && rsync" ./build/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:$TARGET_DIR + rsync -a --rsync-path="mkdir -p $TARGET_DIR && rsync" ./build/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:$TARGET_DIR - name: Update symlink run: sudo ln -sf /var/www/html/${{ steps.package-version.outputs.current-version}} /var/www/html/latest