From d832a309b114176f8e7cebb20da0dc96919fc904 Mon Sep 17 00:00:00 2001 From: Samuel Philipp Date: Wed, 10 Apr 2024 01:17:40 +0200 Subject: [PATCH] updated deploy to delete old files --- .forgejo/workflows/build-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/build-deploy.yml b/.forgejo/workflows/build-deploy.yml index 156f8af..468d224 100644 --- a/.forgejo/workflows/build-deploy.yml +++ b/.forgejo/workflows/build-deploy.yml @@ -30,7 +30,7 @@ jobs: - name: Install Dependencies run: which lftp || ( apk --update add lftp ) - name: Deploy Website - run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./build/ dev.sp-magic.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST + run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R -e ./build/ dev.sp-magic.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST env: FTP_HOST: ${{ secrets.FTP_HOST }} FTP_USERNAME: ${{ secrets.FTP_USERNAME }} @@ -47,7 +47,7 @@ jobs: - name: Install Dependencies run: which lftp || ( apk --update add lftp ) - name: Deploy Website - run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R ./build/ sp-magic.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST + run: lftp -e "set ftp:ssl-force true; set ssl:verify-certificate no; mirror -R -e ./build/ sp-magic.de/; bye" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST env: FTP_HOST: ${{ secrets.FTP_HOST }} FTP_USERNAME: ${{ secrets.FTP_USERNAME }}