From 902faf2b9180ae234135858002f90e98e537478f Mon Sep 17 00:00:00 2001 From: "Ali(Ako) Hosseini" Date: Mon, 10 Jun 2024 17:43:53 +0800 Subject: [PATCH] ci: use test links CF page --- .github/workflows/build-and-deploy-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-and-deploy-test.yml b/.github/workflows/build-and-deploy-test.yml index e9e4ccd0..45cec38b 100644 --- a/.github/workflows/build-and-deploy-test.yml +++ b/.github/workflows/build-and-deploy-test.yml @@ -88,7 +88,7 @@ jobs: npm i -g wrangler echo "Deploying build to Cloudflare Pages" directory='dist' - projectName=${{ secrets.CLOUDFLARE_PROJECT_NAME }} + projectName=${{ secrets.CLOUDFLARE_TEST_LINK_PROJECT_NAME }} branch=$(echo "$HEAD_BRANCH" | head -c 20 | sed 's/[\/_\.]/-/g; s/[^a-zA-Z0-9]$/1/') cf_preview_url=$(wrangler pages deploy $directory --project-name=$projectName --branch=$branch > log.txt 2>&1; echo $?) echo "------"