feat: 프로젝트 소개 페이지 개선 #49
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
# Reference: https://docs.astro.build/ko/guides/deploy/github/ | |
name: Deploy to GitHub Pages | |
on: | |
# 'main' 브랜치로 푸시할 때마다 워크플로를 트리거합니다. | |
# 다른 브랜치 이름을 사용하시나요? `main`을 브랜치 이름으로 바꾸세요. | |
push: | |
branches: [main] | |
# GitHub의 Actions 탭에서 이 워크플로를 수동으로 실행할 수 있습니다. | |
workflow_dispatch: | |
# Allow this job to clone the repo and create a page deployment | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout your repository using git | |
uses: actions/checkout@v4 | |
- name: Install, build, and upload your site | |
uses: withastro/action@v3 | |
env: | |
PUBLIC_BASE_URL: ${{ secrets.PUBLIC_BASE_URL }} | |
with: | |
path: . | |
node-version: 22.9.0 | |
package-manager: pnpm@latest | |
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 |