image-converter-client/.gitea/workflows/deploy-to-workers.yaml

32 lines
727 B
YAML
Raw Permalink Normal View History

2024-10-31 05:31:07 +00:00
# .github/workflows/deploy.yml
name: Deploy to Cloudflare Pages
2024-10-30 22:33:58 +00:00
on:
push:
branches:
- main
2024-10-31 05:31:07 +00:00
2024-10-30 22:33:58 +00:00
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
2024-10-31 05:31:07 +00:00
- 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
2024-10-30 22:33:58 +00:00
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
2024-10-31 05:32:45 +00:00
command: pages deploy ./build/client --project-name=image-converter-client