diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..fdeb2d2d0 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,34 @@ +name: Deploy Sphinx Documentation to GitHub Pages + +on: + push: + branches: + - main # Adjust this to your default branch + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + + - name: Install system packages + run: sudo apt update && sudo apt install libffi-dev gettext + + - name: Install dependencies + run: pip install --upgrade-strategy eager -Ur doc/requirements.txt + + - name: Build documentation + run: make html + working-directory: doc # Adjust to your Sphinx docs directory + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: doc/_build/html \ No newline at end of file