Skip to content

.github/workflows/deploy.yml #11

.github/workflows/deploy.yml

.github/workflows/deploy.yml #11

Workflow file for this run

on:
workflow_dispatch:
inputs:
environment:
description: "Choose an environment to deploy to: <dev|staging|prod>"
required: true
default: "dev"
jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
steps:
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Deploy app
uses: cloudflare/wrangler-action@v3
with:
packageManager: pnpm
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
command: pages deploy dist --env ${{ github.event.inputs.environment }} --project-name=kaplaydocs
preCommands: "pnpm i && pnpm build"