From 96c0f7953b0a73f42f22518d8634884c0c1e2c6c Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Mon, 5 Jun 2023 12:41:17 +0300 Subject: [PATCH] add deploy-docs workflow --- .github/deploy-docs.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/deploy-docs.yaml diff --git a/.github/deploy-docs.yaml b/.github/deploy-docs.yaml new file mode 100644 index 0000000..9340d05 --- /dev/null +++ b/.github/deploy-docs.yaml @@ -0,0 +1,24 @@ +name: Documentation +on: + push: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up latest Python + uses: actions/setup-python@v4 + with: + python-version: "*" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools wheel + python -m pip install -e ".[d]" + python -m pip install -r "docs/requirements.txt" + + - name: Build documentation + run: sphinx-build -a -b html -W --keep-going docs/ docs/_build \ No newline at end of file