Skip to content

Merge pull request #4 from tuatmcc/feat/react #5

Merge pull request #4 from tuatmcc/feat/react

Merge pull request #4 from tuatmcc/feat/react #5

Workflow file for this run

---
name: Production Deployment
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Setup bun store & build artifact cache
uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
node_modules
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
restore-keys: ${{ runner.os }}-bun-
- name: Install bun dependencies
run: bun i --no-save
- name: Build project artifacts
run: bun --bun run build
- name: Deploy project artifacts to Cloudflare Pages
run: bunx wrangler pages deploy ./dist --project-name=tuatmcc-com-mk3 --branch main
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}