feat: add upyun file deployer

This commit is contained in:
Fu Diwei
2025-03-20 21:53:02 +08:00
parent 4acbbf6e13
commit e4fd1e78f5
8 changed files with 78 additions and 2 deletions

View File

@@ -777,7 +777,7 @@ func createDeployer(options *deployerOptions) (deployer.Deployer, error) {
}
}
case domain.DeployProviderTypeUpyunCDN:
case domain.DeployProviderTypeUpyunCDN, domain.DeployProviderTypeUpyunFile:
{
access := domain.AccessConfigForUpyun{}
if err := maputil.Populate(options.ProviderAccessConfig, &access); err != nil {
@@ -785,7 +785,7 @@ func createDeployer(options *deployerOptions) (deployer.Deployer, error) {
}
switch options.Provider {
case domain.DeployProviderTypeUpyunCDN:
case domain.DeployProviderTypeUpyunCDN, domain.DeployProviderTypeUpyunFile:
deployer, err := pUpyunCDN.NewDeployer(&pUpyunCDN.DeployerConfig{
Username: access.Username,
Password: access.Password,