diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 2ec9af0..a8f7559 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -9,6 +9,9 @@ jobs: deploy: runs-on: ubuntu-latest + permissions: + contents: write + steps: - name: Checkout the repository uses: actions/checkout@v2 @@ -24,12 +27,13 @@ jobs: - name: Build the documentation run: | - cd docs - sphinx-apidoc -o source/ ../protac_degradation_predictor - make html + sphinx-apidoc -o docs/source/ protac_degradation_predictor + sphinx-build docs docs/_build/html - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: + publish_branch: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./docs/_build/html + force_orphan: true