mirror of
https://github.com/GenieTim/ftp-action.git
synced 2024-12-04 23:12:26 +08:00
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:
commit
73cab2a2cd
@ -16,7 +16,7 @@ jobs:
|
||||
- name: Deploy FTP
|
||||
uses: sebastianpopp/ftp-action@master
|
||||
with:
|
||||
host: "ftp.example.com"
|
||||
host: ${{ secrets.FTP_SERVER }}
|
||||
user: ${{ secrets.FTP_USERNAME }}
|
||||
password: ${{ secrets.FTP_PASSWORD }}
|
||||
localDir: "dist"
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user