mirror of
https://github.com/pheralb/svgl.git
synced 2024-11-10 14:46:54 +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
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
working-directory: ./check-size
|
working-directory: ./utils/check-size
|
||||||
|
|
||||||
- name: Check svgs size
|
- name: Check svgs size
|
||||||
run: pnpm start
|
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…
Reference in New Issue
Block a user