From d7cfd2ee76b138e17ebd460bc7b2a1d1edcc420a Mon Sep 17 00:00:00 2001 From: tymurbaniak Date: Sun, 1 Mar 2026 00:27:50 +0200 Subject: [PATCH] Update .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 037e451..90a3915 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,19 +1,33 @@ -name: Build +name: Deploy to Cloudflare Pages on: push: branches: [ main ] jobs: - build: + deploy: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 + - name: Use Node + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Install run: npm ci - name: Build - run: npm run build \ No newline at end of file + run: npm run build + + - name: Deploy to Cloudflare Pages + run: | + npx wrangler pages deploy dist \ + --project-name conceptsketch \ + --branch main + env: + CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} + CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} \ No newline at end of file