mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-14 17:21:55 +08:00
29 lines
565 B
YAML
29 lines
565 B
YAML
name: 🚀 Deploy API
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
name: Deploy
|
|
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 }}
|
|
packageManager: pnpm
|
|
workingDirectory: 'api-routes'
|