Merge pull request #12 from tuatmcc/feat/testout-three #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 }} |