Skip to content

feat: 오프라인 Phase 1 — 폰트 셀프호스팅 + 핵심 화면 청크 사전 로드 #155

feat: 오프라인 Phase 1 — 폰트 셀프호스팅 + 핵심 화면 청크 사전 로드

feat: 오프라인 Phase 1 — 폰트 셀프호스팅 + 핵심 화면 청크 사전 로드 #155

Workflow file for this run

name: 🚒 119 Helper CI/CD
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
jobs:
build:
name: 🔨 Build & Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Type check
run: npx tsc --noEmit
- name: Build
run: npm run build
env:
# API 키는 Worker 서버에만 존재. 프론트엔드에는 Worker URL만 필요.
VITE_API_BASE: https://119-helper-api.teemozipsa.workers.dev
VITE_KAKAO_MAP_KEY: ${{ secrets.VITE_KAKAO_MAP_KEY }}
deploy:
name: 🚀 Deploy to GitHub Pages
needs: build
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
env:
VITE_API_BASE: https://119-helper-api.teemozipsa.workers.dev
VITE_KAKAO_MAP_KEY: ${{ secrets.VITE_KAKAO_MAP_KEY }}
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4