v0.0.5 #17
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: Build doc | |
| on: | |
| workflow_dispatch: | |
| release: | |
| types: [created] | |
| jobs: | |
| build_doc: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # python-version: ["3.9", "3.13"] | |
| python-version: ["3.13"] | |
| poetry-version: ["2.1.1"] | |
| # os: [ubuntu-22.04, macos-latest, windows-latest] | |
| os: [macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Run image | |
| uses: abatilo/actions-poetry@v3 | |
| with: | |
| poetry-version: ${{ matrix.poetry-version }} | |
| - name: Install packages | |
| run: poetry install | |
| - name: Generate documentation | |
| run: poetry run python ontodoc -i example/foaf.ttl -o example/build/ -m markdown | |
| - name: Push to current branch | |
| run: | | |
| git config user.name ontodoc_bot | |
| git add -A | |
| git commit -am "[BOT] Update documentation example" | |
| git push |