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
Some checks failed
Build and Deploy MkDocs (POI Portal) / build-and-deploy (push) Has been cancelled
This commit is contained in:
34
.gitea/workflows/mkdocs-build.yml
Normal file
34
.gitea/workflows/mkdocs-build.yml
Normal 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/
|
||||
Reference in New Issue
Block a user