Skip to content

Merge pull request #56 from Ab2nour/fix/retrieve-old-code #29

Merge pull request #56 from Ab2nour/fix/retrieve-old-code

Merge pull request #56 from Ab2nour/fix/retrieve-old-code #29

name: Build & deploy documentation website
on:
push:
branches:
- "main"
permissions:
contents: write
jobs:
deploy-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.10"
- uses: snok/install-poetry@v1
- name: Install dependencies
run: poetry install
- name: Sphinx build
run: |
cd docs
make html
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
force_orphan: true