FtpDeploy(new FtpDeploySettings() {
FtpUri = "ftp://somebaseftpurl",
FtpUserName = "some-ftp-username",
FtpPassword = "some-ftp-password",
ArtifactsPath = "relative-or-absolute-path-to-published-artifacts"
});
This addin will delete all files at the ftp URI, and then upload every file in the ArtifactsPath directory
Task("Publish Artifacts Locally")
.Does(() =>
{
MSBuild(
"./GAS.sln", x => {
x.ArgumentCustomization = args => args.Append("/p:DeployOnBuild=true").Append("/p:PublishProfile=FolderProfile");
x
.SetConfiguration("Release")
.WithTarget("Build");
});
});
The PublishProfile can be created in Visual Studio (it needs to be a Folder publish) See more here: https://docs.microsoft.com/en-us/dotnet/core/tutorials/publishing-with-visual-studio