Skip to content

Fix action

Fix action #2

Workflow file for this run

on: [push]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
defaults:
run:
working-directory: frontend
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Add pnpm
run: yarn global add pnpm
- name: Install deps
run: pnpm install
- name: Vite build
run: pnpm build
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: a5854f55e71b087aa3a3bcdae74b2489
projectName: combinator
directory: "./dist"
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
branch: master
wranglerVersion: "3"