build: Merge dev and Build 2024-07-25 ver #10
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
name: Deploy jsdoc to GitHub Pages | |
on: | |
push: | |
branches: | |
- main # main 브랜치에 푸시될 때 실행 | |
paths: | |
- 'docs/jsdoc/**' # docs/jsdoc 폴더에 변화 감지 | |
workflow_dispatch: # 해당 workflow 수동 실행 버튼 추가 | |
concurrency: | |
group: 'pages' | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
deploy: # jsdoc 배포 | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest # 최신 Ubuntu 환경에서 실행 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './docs/jsdoc' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |