mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-19 18:43:53 +08:00
37 lines
839 B
YAML
37 lines
839 B
YAML
name: Build and Deploy
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
permissions:
|
|
contents: write
|
|
jobs:
|
|
build-and-deploy:
|
|
concurrency: ci-${{ github.ref }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 🛎️ Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: 🛠️ Install Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
with:
|
|
bun-version: latest
|
|
|
|
- name: 🛠️ Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: latest
|
|
|
|
- name: 📦 Install Dependencies
|
|
run: pnpm install
|
|
|
|
- name: 🏗️ Build data
|
|
run: bun build:data
|
|
|
|
- name: 🏗️ Build web
|
|
run: bun build:web
|
|
|
|
- name: 🚀 Deploy
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
with:
|
|
folder: apps/web/dist # The folder the action should deploy. |