2024-10-01 09:18:51 +01:00
|
|
|
name: 🚀 Deploy
|
2024-05-10 19:24:22 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
2024-10-01 09:18:51 +01:00
|
|
|
name: API - Cloudflare Workers
|
2024-05-10 19:24:22 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Setup pnpm 8
|
|
|
|
uses: pnpm/action-setup@v2
|
|
|
|
with:
|
|
|
|
version: 8
|
|
|
|
|
|
|
|
- name: Install global dependencies
|
|
|
|
run: pnpm install
|
|
|
|
|
|
|
|
- name: Deploy to Cloudflare Workers
|
|
|
|
uses: cloudflare/wrangler-action@v3
|
|
|
|
with:
|
|
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
2024-05-10 19:47:32 +01:00
|
|
|
packageManager: pnpm
|
2024-05-11 16:38:05 +01:00
|
|
|
workingDirectory: 'api-routes'
|