fix deployment error #139
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: ci | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| - 'releases/*' | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| env: | |
| CONFIG_FILE: docs/mkdocs.yml | |
| REQUIREMENTS: docs/requirements.txt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch all history for mike versioning | |
| - name: Configure Git Credentials | |
| run: | | |
| git config user.name github-actions[bot] | |
| git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.x | |
| - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | |
| - uses: actions/cache@v3 | |
| with: | |
| key: mkdocs-material-${{ env.cache_id }} | |
| path: .cache | |
| restore-keys: | | |
| mkdocs-material- | |
| - run: pip install mkdocs-material mkdocs-glightbox mkdocs-include-markdown-plugin mike | |
| - name: Deploy with mike | |
| run: | | |
| # Deploy latest version | |
| mike deploy --push --update-aliases --config-file docs/mkdocs.yml latest default | |
| mike set-default --push latest |