Skip to content

fix: db and cloudflare deployment #1

fix: db and cloudflare deployment

fix: db and cloudflare deployment #1

Workflow file for this run

# TODO:
name: Deploy Ephemurl Site
on:
push:
branches:
- main
paths:
- "apps/site/**"
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
# strategy:
# matrix:
# include:
# - projectName: "project-en"
# googleAnalyticsId: "G-XXXXXXXXXX"
# - projectName: "project-fr"
# googleAnalyticsId: "G-XXXXXXXXXX"
steps:
- name: Checkout πŸ›Ž
uses: actions/checkout@v3
# - name: Setup node env πŸ—
# uses: actions/setup-node@v3
# with:
# node-version: lts/gallium
# cache: "yarn"
- name: Setup pnpm πŸ—
uses: pnpm/action-setup@v3
with:
version: 8
- name: Install dependencies πŸ‘¨πŸ»β€πŸ’»
run: pnpm install
- name: Run build
run: pnpm site build
- name: Publish
uses: cloudflare/pages-action@1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
directory: ./apps/site/dist
gitHubToken: ${{ secrets.GITHUB_TOKEN }}