fix(deps): bump actions/checkout from 5 to 6 (#1261) #899
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: Docs | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.x' | |
| - name: Install mkdocs | |
| run: pip install mkdocs | |
| - name: Build docs | |
| run: mkdocs build --strict | |
| deploy: | |
| if: github.ref == 'refs/heads/main' | |
| needs: build | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.x' | |
| - name: Install mkdocs | |
| run: pip install mkdocs | |
| - name: Publish docs | |
| run: mkdocs gh-deploy --no-history |