creatDeploymentGit

This commit is contained in:
Arman
2025-03-13 15:26:08 +01:00
parent 5538bfc574
commit 4d3edf6c49
@@ -71,20 +71,20 @@
async function createDeployment() {
try {
if (branch) {
await sdk.forProject.sites.createVcsDeployment(
site.$id,
VCSDeploymentType.Branch,
branch,
activate
);
} else {
if (commit) {
await sdk.forProject.sites.createVcsDeployment(
site.$id,
VCSDeploymentType.Commit,
commit,
activate
);
} else if (branch) {
await sdk.forProject.sites.createVcsDeployment(
site.$id,
VCSDeploymentType.Branch,
branch,
activate
);
}
show = false;
invalidate(Dependencies.DEPLOYMENTS);