From 1e23b32f30c95458d805696a8091b38cf4191fa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Trkan?= Date: Mon, 6 Oct 2025 18:26:17 +0200 Subject: [PATCH] feat(infrastructure): add frontend, deploy to cloudflare --- .github/workflows/frontend-pages.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/frontend-pages.yml b/.github/workflows/frontend-pages.yml index bda029d..d6af8aa 100644 --- a/.github/workflows/frontend-pages.yml +++ b/.github/workflows/frontend-pages.yml @@ -115,9 +115,11 @@ jobs: # Prefer manual input, then repo variable, fallback to repo-name INPUT_NAME='${{ inputs.project_name }}' VAR_NAME='${{ vars.CF_PAGES_PROJECT_NAME }}' - if [ -n "$INPUT_NAME" ]; then PNAME="$INPUT_NAME"; - elif [ -n "$VAR_NAME" ]; then PNAME="$VAR_NAME"; - else PNAME="${GITHUB_REPOSITORY##*/}-frontend"; fi + if [ -n "$INPUT_NAME" ]; then PNAME_RAW="$INPUT_NAME"; + elif [ -n "$VAR_NAME" ]; then PNAME_RAW="$VAR_NAME"; + else PNAME_RAW="${GITHUB_REPOSITORY##*/}-frontend"; fi + # Normalize project name to lowercase to satisfy Cloudflare Pages naming + PNAME="${PNAME_RAW,,}" # Determine branch for Pages if [ "${INPUT_MODE}" = "pr" ]; then if [ -z "${INPUT_PR}" ]; then echo "pr_number is required when mode=pr"; exit 1; fi