diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index c2da8d4..374428e 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -2,18 +2,27 @@ name: Deploy Sphinx documentation to Pages on: push: - branches: [main] # branch to trigger deployment + branches: + - main jobs: - pages: - runs-on: ubuntu-20.04 + deploy: + runs-on: ubuntu-latest steps: - - id: deployment - uses: sphinx-notes/pages@v3 - with: - publish: false - requirements_path: ./requirements/requirements.txt - - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ${{ steps.deployment.outputs.artifact }} \ No newline at end of file + - uses: actions/checkout@v2 + - name: Install Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r ./requirement/requirements.txt + - name: Build docs + run: | + cd docs && make html + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./build/html \ No newline at end of file