From 2cd972500b3f32814d14d02124e2b8351015a046 Mon Sep 17 00:00:00 2001 From: Sead Feng Date: Fri, 23 Aug 2024 14:20:45 +0800 Subject: [PATCH] update --- .github/workflows/deploy-to-pages.yml | 4 ++-- .github/workflows/deploy-to-preview.yml | 2 +- src/metadata.ts | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-to-pages.yml b/.github/workflows/deploy-to-pages.yml index 84ec3cc..66dd8ff 100644 --- a/.github/workflows/deploy-to-pages.yml +++ b/.github/workflows/deploy-to-pages.yml @@ -23,11 +23,11 @@ jobs: -H "Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}") if [ $response -eq 404 ]; then echo "Project does not exist, creating..." - npx wrangler pages project create font-generator --production-branch main + npm run pages:build && npx wrangler pages deploy --production-branch ${{ github.ref_name }} else echo "Project exists, skipping creation." fi - npm run deploy + npm run pages:build && npx wrangler pages deploy --production-branch ${{ github.ref_name }} env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} diff --git a/.github/workflows/deploy-to-preview.yml b/.github/workflows/deploy-to-preview.yml index a5b1ae2..b337ba4 100644 --- a/.github/workflows/deploy-to-preview.yml +++ b/.github/workflows/deploy-to-preview.yml @@ -38,7 +38,7 @@ jobs: echo "Project exists, skipping creation." fi sed -i 's/font-generator/font-generator-preview/' wrangler.toml - npm run deploy + npm run pages:build && npx wrangler pages deploy --production-branch main env: CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} diff --git a/src/metadata.ts b/src/metadata.ts index 0b369ea..2d9383e 100644 --- a/src/metadata.ts +++ b/src/metadata.ts @@ -88,6 +88,8 @@ export const getStyleName = async ({ params }: Readonly<{ params: { locale: Loca return t("frontend.slug.menu.underline"); case "bubble-text": return t("frontend.slug.menu.bubble-text"); + case "square-text": + return t("frontend.slug.menu.square-text"); default: return ""; }