Skip to content

Changed the deployment rule #3

Changed the deployment rule

Changed the deployment rule #3

# This workflow will deploy the sphinx document.
name: sphinx-deploy-gh-pages
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
sphinx-build:
if: github.repository == 'sissaschool/turborvb_website'
runs-on: ubuntu-latest
steps:
- name: Install and Setup Python
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install python dependencies
run: pip install sphinx sphinx-rtd-theme
- name: Checkout the project repository
uses: actions/checkout@v2
- name: Build the sphinx document.
#working-directory: doc
run: |
make html
- name: Deploy the sphinx document.
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/html