From cdfaf3e66de327f3d1b1867473920614ec1bc667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Trkan?= Date: Mon, 6 Oct 2025 18:23:52 +0200 Subject: [PATCH] feat(infrastructure): add frontend, deploy to cloudflare --- .github/workflows/frontend-pages.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/frontend-pages.yml b/.github/workflows/frontend-pages.yml index 9e1f215..bda029d 100644 --- a/.github/workflows/frontend-pages.yml +++ b/.github/workflows/frontend-pages.yml @@ -128,6 +128,15 @@ jobs: echo "project_name=$PNAME" >> $GITHUB_OUTPUT echo "branch=$PBRANCH" >> $GITHUB_OUTPUT + - name: Ensure Cloudflare Pages project exists + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + PNAME: ${{ steps.pname.outputs.project_name }} + run: | + set -euo pipefail + npx wrangler pages project create "$PNAME" --production-branch=main || true + - name: Deploy using Cloudflare Wrangler uses: cloudflare/wrangler-action@v3 with: