Skip to content

πŸš€ move to cloudflare pages #45

πŸš€ move to cloudflare pages

πŸš€ move to cloudflare pages #45

Workflow file for this run

name: ci
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v3
- name: Install pnpm πŸ“¦
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false
- name: Setup NodeJS πŸ’š
uses: actions/setup-node@v3
with:
node-version: 20
cache: pnpm
- name: Install Deps 🧩
run: pnpm install
- name: Build πŸ”¨
run: pnpm run build
- name: Publish πŸš€
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./dist --project-name=dvjn --branch="${{ github.head_ref || github.ref_name }}" --commit-hash="${{ github.sha }}"