Migrating from v3 to v4 should be fairly straightforward. Version 4 was designed with speed and ease of initial setup in mind. Going forward version 4 will be the only supported version.
Most features have been carried forward and improved upon. However, some features did not make the cut.
sftp
is no longer supported. If you havesftp
access you are usingssh
, that means you have access to a much more modern and capable protocol. I plan on releasing a separate github action that will deploy oversftp
/ssh
usingrsync
. Until then you can continue using version 3.- The
include
argument has been removed. I didn't see much need for it in the initial release. If you need this feature please create a support ticket.
- Remove
with: fetch-depth: 2
. It is no longer needed and removing it will slightly speed up deployments. - Change the version to
4.X.X
, for exampleSamKirkland/[email protected]
(please check readme for latest version) - If you have a
.git-ftp-include
file you should delete it. Version 4 tracks files differently and no longer needs this config file. - If you have a
.git-ftp-ignore
file, you should transfer the options to the newexclude
argument. Note: Version 4 excludes any.git*
andnode_modules/
files/folders by default - Update your arguments to reflect the following changes
ftp-server
was split into 4 arguments.server
,port
,protocol
, andserver-dir
. Transfer your config to these options as needed.ftp-username
was renamed tousername
ftp-password
was renamed topassword
local-dir
andserver-dir
now must end with/
git-ftp-args
andknown-hosts
arguments were removed