FMHYedit/.github/workflows/deploy-api.yml
Workflow config file is invalid. Please check your config file: yaml: line 18: mapping values are not allowed in this context
2023-11-04 20:24:25 +05:30

40 lines
795 B
YAML

name: Deploy API
on:
push:
branches:
- main
- vitepress
pull_request:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
ci:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 6
- uses: pnpm/action-setup@v2.4.0
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- run: pnpm install --no-frozen-lockfile
- name: Build
run: pnpm api:build
env:
NITRO_PRESET: cloudflare
- name: Publish to Cloudflare
uses: cloudflare/wrangler-action@3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}