From 3d1017a511dde38a33992a7c6f57217e3ffff4ad Mon Sep 17 00:00:00 2001 From: Robinson <45032111+RobinsonBeaucour@users.noreply.github.com> Date: Wed, 12 Jun 2024 09:17:39 +0200 Subject: [PATCH] Create documentation.yml poetry lock --- .github/workflows/documentation.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml new file mode 100644 index 0000000..26780a8 --- /dev/null +++ b/.github/workflows/documentation.yml @@ -0,0 +1,28 @@ +name: documentations + +on: [push, pull_request, workflow_dispatch] + +permissions: + contents: write + +jobs: + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v3 + - name: Install dependencies + run: | + pip install poetry + poetry lock + poetry install --with doc + - name: Sphinx build + run: | + poetry run sphinx-build -M html ./docs ./docs/_build + - 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