feat(infrastructure): add frontend, deploy to cloudflare

This commit is contained in:
2025-10-06 18:23:52 +02:00
parent 21ccb00f4a
commit cdfaf3e66d

View File

@@ -128,6 +128,15 @@ jobs:
echo "project_name=$PNAME" >> $GITHUB_OUTPUT echo "project_name=$PNAME" >> $GITHUB_OUTPUT
echo "branch=$PBRANCH" >> $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 - name: Deploy using Cloudflare Wrangler
uses: cloudflare/wrangler-action@v3 uses: cloudflare/wrangler-action@v3
with: with: