Merge pull request #363 from konflux-ci/ISV-7072 #155
Workflow file for this run
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: "Documentation" | |
| on: | |
| push: | |
| paths: | |
| - docs/** | |
| - mkdocs.yml | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| documentation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Generate docs | |
| run: | | |
| pipx install mkdocs | |
| pipx inject mkdocs \ | |
| mkdocs-material \ | |
| pymdown-extensions | |
| # Replace /docs prefix from README.md | |
| sed -i 's|(docs/|(./|' README.md | |
| mkdocs build | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| if: github.ref == 'refs/heads/main' | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./site |