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