Skip to content

fix: github actions deploy fix #3

fix: github actions deploy fix

fix: github actions deploy fix #3

Workflow file for this run

# GitHub Pages에 정적 콘텐츠를 배포하기 위한 간단한 워크플로우
name: Deploy static content to Pages
on:
# 기본 브랜치에 대한 푸시에만 실행
push:
branches: ["main"]
# Actions 탭에서 수동으로 이 워크플로우를 실행할 수 있도록 함
workflow_dispatch:
# GITHUB_TOKEN의 권한을 설정하여 GitHub Pages에 배포를 허용
permissions:
contents: read
pages: write
id-token: write
# 한 번에 하나의 배포만 허용하도록 동시성 설정
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# 정적 콘텐츠를 빌드하는 단일 작업
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v5
with:
enablement: true
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# out 디렉토리에서 업로드
path: "./out"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4