Skip to content

Deploy to production #31

Deploy to production

Deploy to production #31

Workflow file for this run

name: Deploy to production
on:
workflow_dispatch:
push:
branches:
- main
paths:
- '.github/workflows/deploy.yml'
- 'wrangler.toml'
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Deploy
uses: cloudflare/wrangler-action@v3
env:
AUTH_GITHUB_ID: ${{ secrets.AUTH_GITHUB_ID }}
AUTH_GITHUB_SECRET: ${{ secrets.AUTH_GITHUB_SECRET }}
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
AUTH_TRUST_HOST: ${{ secrets.AUTH_TRUST_HOST }}
ADMINS: ${{ secrets.ADMINS }}
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
wranglerVersion: '3.77.0'
secrets: |
ADMINS
AUTH_GITHUB_ID
AUTH_GITHUB_SECRET
AUTH_SECRET
AUTH_TRUST_HOST