fix: db and cloudflare deployment #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 }} |