File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Fast nodejs ftp deployment with github actions.
1717 # Ftp password
1818 password : ${{ secrets.FTP_PASSWORD }}
1919 # The remote folder location of your FTP server
20- remote_folder : ${{ secrets.FTP_REMOTE_FOLDER }}
20+ remote_folder : ${{ secrets.FTP_REMOTE_FOLDER }} # optional
2121 # The local folder location
2222 local_folder : dist # optional, default is dist
2323 # Remove existing files inside FTP remote folder
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ inputs:
1919 required : true
2020 description : ' Ftp password'
2121 remote_folder :
22- required : true
22+ required : false
2323 description : ' The remote folder location of your FTP server'
2424 local_folder :
2525 required : false
Original file line number Diff line number Diff line change @@ -3111,7 +3111,7 @@ new FtpDeploy()
31113111 port: JSON.parse(core.getInput('port')) || 21,
31123112 user: core.getInput('username', { required: true }),
31133113 password: core.getInput('password', { required: true }),
3114- remoteRoot: core.getInput('remote_folder', { required: true }) ,
3114+ remoteRoot: core.getInput('remote_folder') || '' ,
31153115 localRoot: core.getInput('local_folder') || 'dist', // __dirname + '/local-folder',
31163116 deleteRemote: JSON.parse(core.getInput('cleanup')) || false, // If true, delete ALL existing files at destination before uploading
31173117 include: JSON.parse(core.getInput('include')) || [], // this would upload everything except dot files
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ new FtpDeploy()
99 port : JSON . parse ( core . getInput ( 'port' ) ) || 21 ,
1010 user : core . getInput ( 'username' , { required : true } ) ,
1111 password : core . getInput ( 'password' , { required : true } ) ,
12- remoteRoot : core . getInput ( 'remote_folder' , { required : true } ) ,
12+ remoteRoot : core . getInput ( 'remote_folder' ) || '' ,
1313 localRoot : core . getInput ( 'local_folder' ) || 'dist' , // __dirname + '/local-folder',
1414 deleteRemote : JSON . parse ( core . getInput ( 'cleanup' ) ) || false , // If true, delete ALL existing files at destination before uploading
1515 include : JSON . parse ( core . getInput ( 'include' ) ) || [ ] , // this would upload everything except dot files
You can’t perform that action at this time.
0 commit comments