mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
creatDeploymentGit
This commit is contained in:
+8
-8
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user