Skip to content

Commit

Permalink
use cloudflare
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Mar 19, 2024
1 parent 320c4c4 commit c88f498
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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

0 comments on commit c88f498

Please sign in to comment.