Skip to content

Fix vite update breaking changes #67

Fix vite update breaking changes

Fix vite update breaking changes #67

Workflow file for this run

name: deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
cf-workers-deploy:
name: cf-workers-deploy
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Build site and deploy to Cloudflare Workers
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
env:
CF_ACCOUNT_ID: 'f6e9b9e1c57fe88281bd5409924e8311'
deno-deploy:
name: deno-deploy
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Install pnpm and node_modules
uses: pnpm/action-setup@v2
with:
version: latest
run_install: true
- name: Build site
run: pnpm build
env:
DENO: 1
# equivalent to removing node_modules, isolate build files
- name: Move build files to deploy dir
run: mkdir deno-deploy && mv build deno-deploy
- name: Deploy to Deno Deploy
uses: denoland/deployctl@v1
with:
project: pluvial-xyz
entrypoint: build/index.js
root: deno-deploy