add mkdocs changes for github pages. #3
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: Deploy MkDocs with gh-deploy | |
| on: | |
| push: | |
| branches: [ "4.6.0" ] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch full history for gh-deploy | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| cd en | |
| pip install -r requirements.txt | |
| - name: Configure Git | |
| run: | | |
| git config --global user.name "GitHub Actions" | |
| git config --global user.email "actions@github.com" | |
| - name: Deploy to GitHub Pages | |
| run: | | |
| cd en | |
| mkdocs build --clean | |
| touch site/.nojekyll | |
| mkdocs gh-deploy --clean --ignore-version --message "Deploy from GitHub Actions with .nojekyll fix" |