feat: init POI Knowledge Portal with CI/CD workflow
Some checks failed
Build and Deploy MkDocs (POI Portal) / build-and-deploy (push) Has been cancelled

This commit is contained in:
Poia Assistant
2026-06-13 14:25:52 +09:00
commit c3892fe0aa
4 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
name: Build and Deploy MkDocs (POI Portal)
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install MkDocs and Plugins
run: |
pip install mkdocs-material
pip install mkdocs-multirepo-plugin
- name: Build HTML Site
run: mkdocs build
- name: Deploy to Nginx Document Root
# 주의: 실제 Nginx 호스팅 경로(예: /opt/data/nginx/html)로 복사하도록 추후 환경에 맞게 수정
run: |
echo "Build successful! Deploying site/ to target directory..."
# cp -r site/* /opt/data/nginx/html/poi-portal/