Merge pull request #144 from liuzhenqi77/improvements #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: netneurotools-docs | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
deploy_page: | |
if: github.repository_owner == 'netneurolab' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: | | |
pip install -r docs/requirements.txt | |
- name: Install netneurotools | |
run: | | |
pip install . | |
- name: Build the docs | |
run: | | |
cd docs && make clean html | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'docs/_build/html' | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 |