Skip to content

fix(ci): 빈 Notion DB orphan 삭제 방지 및 삭제된 파일 복구 #58

fix(ci): 빈 Notion DB orphan 삭제 방지 및 삭제된 파일 복구

fix(ci): 빈 Notion DB orphan 삭제 방지 및 삭제된 파일 복구 #58

Workflow file for this run

name: Deploy to GitHub Pages
on:
# main에 push될 때마다 자동 배포
push:
branches: [main]
# Actions 탭에서 수동 실행 허용 (롤백/재배포에 유용)
workflow_dispatch:
# GITHUB_TOKEN에 필요한 권한 부여 (Pages 배포용)
permissions:
contents: read
pages: write
id-token: write
# 새 배포가 시작되면 이전 대기 중인 배포는 취소
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- name: Install dependencies
run: npm ci
- name: Build (production, all locales)
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./build
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4