Skip to content

use cloudflare

use cloudflare #1

Workflow file for this run

name: "Publish"
on:
push:
branches:
- main
env:
CLOUDFLARE_API_TOKEN: ${{secrets.CLOUDFLARE_PAGES_API_TOKEN}}
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: setup actions
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20.5.1
registry-url: https://registry.npmjs.org
- name: install dependencies
run: npm i
- name: build
run: npm run build
- name: install wrangler
run: npm i -g wrangler
- name: deploy
run: wrangler pages deploy dist --project-name pilcrow --branch main