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/