Merge pull request #32 from dynatrace-wwse/rfe/mcpsso Badge AI Powered for MCP - deploy github pages #13
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 to github pages | |
| run-name: ${{ github.event.head_commit.message }} - deploy github pages | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - docs/* | |
| jobs: | |
| deploy-github-pages: | |
| runs-on: ubuntu-24.04 | |
| # No CI Test should run longer than 10 minutes. | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout repository code | |
| uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.x' | |
| - name: MKDocs - install requirements, build, gh-deploy | |
| run: | | |
| pip install --break-system-packages -r docs/requirements/requirements-mkdocs.txt | |
| git fetch origin gh-pages:gh-pages | |
| mkdocs build | |
| mkdocs gh-deploy | |