mirror of
http://43.153.184.91:8080/https://github.com/SamKirkland/FTP-Deploy-Action.git
synced 2026-01-27 11:13:02 +08:00
2.0 KiB
2.0 KiB
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
4.X.X, for exampleSamKirkland/FTP-Deploy-Action@4.3.1(please check readme for 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.server,port,protocol, andserver-dir. Transfer your config to these options as needed.ftp-usernamewas renamed tousernameftp-passwordwas renamed topasswordlocal-dirandserver-dirnow must end with/git-ftp-argsandknown-hostsarguments were removed