mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 06:58:04 +08:00
⚙️ Add deploy api workflow + fix `check-app
` workflow
This commit is contained in:
parent
d395eea8b6
commit
e9c92e105a
4
.github/workflows/check-app.yml
vendored
4
.github/workflows/check-app.yml
vendored
@ -38,8 +38,8 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
working-directory: ./check-size
|
||||
working-directory: ./utils/check-size
|
||||
|
||||
- name: Check svgs size
|
||||
run: pnpm start
|
||||
working-directory: ./check-size
|
||||
working-directory: ./utils/check-size
|
||||
|
26
.github/workflows/deploy-api.yml
vendored
Normal file
26
.github/workflows/deploy-api.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
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 }}
|
Loading…
x
Reference in New Issue
Block a user