steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- - name: Install Poetry
- run: |
- curl -sSL https://install.python-poetry.org | python3 -
- - name: Install dependencies
- run: |
- poetry install
+ with:
+ python-version: 3.11
+ - uses: abatilo/actions-poetry@v2.1.3
+ - name: install
+ run: poetry install
- name: Sphinx build
run: |
- sphinx-build docs _build
- - name: Deploy to GitHub Pages
- uses: peaceiris/actions-gh-pages@v3
- if: ${{ github.event_name == 'push'}}
+ mkdir gh-pages
+ touch gh-pages/.nojekyll
+ cd docs/
+ poetry run sphinx-build -b html . _build
+ cp -r _build/* ../gh-pages/
+ - name: Deploy documentation
+ if: ${{ github.event_name == 'push' }}
+ uses: JamesIves/github-pages-deploy-action@4.1.4
with:
- publish_branch: gh-pages
- github_token: ${{ secrets.GITHUB_TOKEN }}
- publish_dir: _build/
- force_orphan: true
+ branch: gh-pages
+ folder: gh-pages