Merge pull request #79 from keboola/CFT-3469-Update-documentation #1
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 & Test | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| jobs: | |
| docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: "3.11" | |
| - name: Create html documentation | |
| run: | | |
| pip install --user pdoc3 | |
| python setup.py install | |
| pdoc --html -f -o .\docs keboola.component | |
| mv .docs/keboola/component/* docs | |
| rm -r .docs/keboola | |
| - name: Commit docs | |
| run: | | |
| git config --global user.name 'KCF' | |
| git config --global user.email 'kcf@users.noreply.github.com' | |
| git commit --allow-empty -am "Automated html docs build" | |
| git push |