From ca0bf5eeba944335ad0637115d1c6032e3a35d94 Mon Sep 17 00:00:00 2001 From: GrantBirki Date: Thu, 7 Dec 2023 23:17:03 -0700 Subject: [PATCH] properly check for pages deployments --- src/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 9cca938..cdd0b05 100755 --- a/src/index.ts +++ b/src/index.ts @@ -269,7 +269,11 @@ async function wranglerCommands() { setOutput("command-stderr", stdErr); // Check if this command is a workers or pages deployment - if (command.startsWith("deploy") || command.startsWith("publish")) { + if ( + command.startsWith("deploy") || + command.startsWith("publish") || + command.startsWith("pages publish") + ) { // If this is a workers or pages deployment, try to extract the deployment URL let deploymentUrl = ""; const deploymentUrlMatch = stdOut.match(/https?:\/\/[a-zA-Z0-9-\.\/]+/);