⚙️ Add deploy api workflow + fix `check-app` workflow

This commit is contained in:
pheralb 2024-05-10 19:24:22 +01:00
parent d395eea8b6
commit e9c92e105a
2 changed files with 28 additions and 2 deletions

View File

@ -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
View 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 }}