Skip to content

Version 3 initial

Version 3 initial #2

Workflow file for this run

name: Build & Deploy
on:
push:
branches: [master]
jobs:
build:
name: Build
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
cache: pnpm
- name: Install Dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: artifact
path: dist
deploy:
name: Deploy
needs: [build]
runs-on: ubuntu-latest
environment:
name: cloudflare-pages
url: ${{ steps.deploy.outputs.deployment-url }}
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- name: Deploy
id: deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy dist --project-name=party-lottery