From e9017efa705040a12ea83d7ada87772e315d1c5c Mon Sep 17 00:00:00 2001 From: YHuniv <84550486+YHuniv@users.noreply.github.com> Date: Fri, 21 Jun 2024 10:29:53 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b13789..548fb81 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1 +1,34 @@ +name: Deploy Documentation + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.8' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install sphinx + + - name: Build documentation + run: sphinx-build -b html docs/ build/ + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build