mirror of
https://github.com/SamKirkland/FTP-Deploy-Action.git
synced 2025-08-14 14:05:05 +00:00
Improved pagination, add missing punctuation, delete useless separation lines, improve bullet lists, add link to README and releases page
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:
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.
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.4
(please check the README or the releases page for the 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
server-dir
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.