Skip to content

Production Deploy

Production Deploy #426

name: Production Deploy
on:
workflow_dispatch:
jobs:
build-app:
uses: ./.github/workflows/build.yml
with:
env: ${{ vars.PRODUCTION_ENV }}
deploy:
needs: build-app
environment: production
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Deploy to Cloudflare Pages
steps:
- name: Checkout Branch
uses: actions/checkout@v3
- name: Download Built App
uses: actions/download-artifact@v3
with:
name: built-app
path: out
- name: Publish
run: yarn dlx wrangler pages publish "out" --project-name "${{ vars.CF_PAGES_NAME_PRODUCTION }}" --commit-message " "
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}