Build and Deploy Documentation #7
This file contains hidden or 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: Build and Deploy Documentation | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Doxygen | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y doxygen graphviz | |
| - name: Debug - Check file structure | |
| run: | | |
| echo "Current directory:" | |
| pwd | |
| echo "Files in root:" | |
| ls -la | |
| echo "Files in docs directory:" | |
| ls -la docs/ | |
| echo "Checking if Doxyfile exists:" | |
| test -f docs/Doxyfile && echo "Doxyfile exists" || echo "Doxyfile not found" | |
| - name: Build Documentation | |
| run: | | |
| cd docs | |
| doxygen Doxyfile | |
| - name: Fix Korean translations | |
| run: | | |
| cd docs/html | |
| # Replace "문서화" with "Documentation" in all HTML files | |
| find . -name "*.html" -type f -exec sed -i 's/문서화/Documentation/g' {} \; | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v4 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: './docs/html' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |