Merge pull request #1 from thijsniks/master

- Excluding Git history
- Made the server variable a secret
- Continue when possible
- Deference symbolic links
- Verbose bash commands
This commit is contained in:
Sebastian Popp 2019-11-16 18:35:20 +01:00 committed by GitHub
commit 73cab2a2cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ jobs:
- name: Deploy FTP - name: Deploy FTP
uses: sebastianpopp/ftp-action@master uses: sebastianpopp/ftp-action@master
with: with:
host: "ftp.example.com" host: ${{ secrets.FTP_SERVER }}
user: ${{ secrets.FTP_USERNAME }} user: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }} password: ${{ secrets.FTP_PASSWORD }}
localDir: "dist" localDir: "dist"

View File

@ -2,4 +2,4 @@
set -e set -e
lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ssl:verify-certificate false; mirror -R $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit" lftp $INPUT_HOST -u $INPUT_USER,$INPUT_PASSWORD -e "set ssl:verify-certificate false; mirror --reverse --continue --dereference -x ^\.git/$ $INPUT_LOCALDIR $INPUT_REMOTEDIR; quit"