mirror of
https://github.com/SamKirkland/FTP-Deploy-Action.git
synced 2025-11-01 07:34:00 +00:00
2.2 KiB
2.2 KiB
How to migrate between versions
Migrating from v4.1.0 to v4.2.0
v4.2.0 parses the exclude option in a more standard way. Going forward the exclude option must be in the following format:
exclude: |
**/.git*
**/.git*/**
**/node_modules/**
fileToExclude.txt
Migrating from v3 to v4
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.
Those who can't upgrade
Most features have been carried forward and improved upon. However, some features did not make the cut:
sftpis no longer supported. If you havesftpaccess 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/sshusingrsync. Until then you can continue using version 3.- The
includeargument 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.
How to upgrade
- Remove
with: fetch-depth: 2. It is no longer needed and removing it will slightly speed up deployments. - Change the version to
v4.X.X, for exampleSamKirkland/FTP-Deploy-Action@v4.3.5(please check the README or the releases page for the latest version). - If you have a
.git-ftp-includefile you should delete it. Version 4 tracks files differently and no longer needs this config file. - If you have a
.git-ftp-ignorefile, you should transfer the options to the newexcludeargument. Note: version 4 excludes any.git*andnode_modules/files / folders by default. - Update your arguments to reflect the following changes:
ftp-serverwas split into 4 arguments:serverportprotocolserver-dir
ftp-usernamewas renamed tousername.ftp-passwordwas renamed topassword.local-dirandserver-dirnow must end with/.git-ftp-argsandknown-hostsarguments were removed.