Compare commits

...

3 commits

Author SHA1 Message Date
isUnknown
d484915c16 Revert "fix: use HEREDOC for lftp script to handle special chars in password"
All checks were successful
Deploy / Build and Deploy to Production (push) Successful in 28s
This reverts commit 6c421ce628.
2025-12-11 13:45:46 +01:00
isUnknown
8ddac25d5c Revert "fix: pass FTP credentials as lftp arguments instead of script"
This reverts commit 0b1a759e5e.
2025-12-11 13:45:46 +01:00
isUnknown
0b1a759e5e fix: pass FTP credentials as lftp arguments instead of script 2025-12-11 13:42:41 +01:00

View file

@ -46,14 +46,20 @@ jobs:
run: | run: |
apt-get install -y -qq lftp apt-get install -y -qq lftp
cd dist cd dist
cat > /tmp/lftp-script.txt <<SCRIPT lftp -c "
set ftp:ssl-allow no set ftp:ssl-allow no;
open -u $USERNAME,$PASSWORD $PRODUCTION_HOST open -u $USERNAME,$PASSWORD $PRODUCTION_HOST;
mirror --reverse --verbose --ignore-time --parallel=10 -x local/ assets assets mirror --reverse --verbose --ignore-time --parallel=10 \
mirror --reverse --verbose --ignore-time --parallel=10 -x accounts/ -x cache/ -x sessions/ site site -x 'local/' \
mirror --reverse --verbose --ignore-time --parallel=10 kirby kirby assets assets;
mirror --reverse --verbose --ignore-time --parallel=10 vendor vendor mirror --reverse --verbose --ignore-time --parallel=10 \
put index.php -o index.php -x 'accounts/' \
quit -x 'cache/' \
SCRIPT -x 'sessions/' \
lftp -f /tmp/lftp-script.txt site site;
mirror --reverse --verbose --ignore-time --parallel=10 \
kirby kirby;
mirror --reverse --verbose --ignore-time --parallel=10 \
vendor vendor;
put index.php -o index.php;
quit"