From a60e9e186357f0b8695a0057dd8b36578def40a5 Mon Sep 17 00:00:00 2001 From: Farrah Mae Ochoa Date: Thu, 25 Apr 2024 19:21:42 +0400 Subject: [PATCH] ci: build --- .github/workflows/build-and-deploy-staging.yml | 2 +- .github/workflows/build-and-deploy-test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-deploy-staging.yml b/.github/workflows/build-and-deploy-staging.yml index 565d4818..2ef00b1b 100644 --- a/.github/workflows/build-and-deploy-staging.yml +++ b/.github/workflows/build-and-deploy-staging.yml @@ -52,7 +52,7 @@ jobs: echo "Installing Wrangler CLI" npm i -g wrangler echo "Deploying build to Cloudflare Pages" - directory='public' + directory='dist' projectName=${{ secrets.CLOUDFLARE_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 $?) diff --git a/.github/workflows/build-and-deploy-test.yml b/.github/workflows/build-and-deploy-test.yml index 8c437c82..977c3ec0 100644 --- a/.github/workflows/build-and-deploy-test.yml +++ b/.github/workflows/build-and-deploy-test.yml @@ -77,7 +77,7 @@ jobs: echo "Installing Wrangler CLI" npm i -g wrangler echo "Deploying build to Cloudflare Pages" - directory='public' + directory='dist' projectName=${{ secrets.CLOUDFLARE_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 $?)