Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
seadfeng committed Aug 23, 2024
1 parent 54a1007 commit 2cd9725
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-to-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion .github/workflows/deploy-to-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 2 additions & 0 deletions src/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 "";
}
Expand Down

0 comments on commit 2cd9725

Please sign in to comment.