github: make lftp verbose

also move the install to a separate step so it is easier to read the logs
This commit is contained in:
David Lechner
2020-05-20 16:58:50 -05:00
committed by David Lechner
parent 1a57031dd7
commit 7ba99d62bb
+4 -2
View File
@@ -19,6 +19,9 @@ jobs:
- name: Build
if: ${{ success() }}
run: yarn build
- name: Install lftp
if: ${{ success() }}
run: sudo apt-get update && sudo apt-get install --yes lftp
- name: Publish
if: ${{ success() }}
shell: bash
@@ -27,5 +30,4 @@ jobs:
LFTP_PASSWORD: ${{ secrets.lftpPassword }}
LFTP_SITE: ${{ secrets.lftpSite }}
run: |
sudo apt-get update && sudo apt-get install --yes lftp
lftp -e "set ssl:check-hostname false; open --user $LFTP_USER --env-password $LFTP_SITE && mirror --reverse --delete --exclude=.htaccess build code; exit"
lftp -e "set ssl:check-hostname false; open --user $LFTP_USER --env-password $LFTP_SITE && mirror --verbose --reverse --delete --exclude=.htaccess build code; exit"