Skip to content

Commit

Permalink
ci: add custom--publih
Browse files Browse the repository at this point in the history
  • Loading branch information
Khushiyant committed Jan 30, 2024
1 parent af6c209 commit 54ecc26
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
- 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

0 comments on commit 54ecc26

Please sign in to comment.