From 748ee204a8e6bebb89051fdc374eb1d180d173bc Mon Sep 17 00:00:00 2001 From: christian Date: Thu, 31 Oct 2024 06:31:07 +0100 Subject: [PATCH] updated workflow --- .gitea/workflows/deploy-to-workers.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy-to-workers.yaml b/.gitea/workflows/deploy-to-workers.yaml index b2f4d95..eeceb84 100644 --- a/.gitea/workflows/deploy-to-workers.yaml +++ b/.gitea/workflows/deploy-to-workers.yaml @@ -1,16 +1,31 @@ -name: Deploy Worker +# .github/workflows/deploy.yml +name: Deploy to Cloudflare Pages on: push: branches: - main + jobs: deploy: runs-on: ubuntu-latest timeout-minutes: 60 steps: - uses: actions/checkout@v4 - - name: Build & Deploy Worker + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install Dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Deploy to Cloudflare Pages uses: cloudflare/wrangler-action@v3 with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + command: pages deploy ./build/client --project-name=image-conversion-client