mirror of
https://github.com/GenieTim/ftp-action.git
synced 2024-12-05 07:22:25 +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
|
- 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"
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user