Skip to content

Merge pull request #144 from liuzhenqi77/improvements #4

Merge pull request #144 from liuzhenqi77/improvements

Merge pull request #144 from liuzhenqi77/improvements #4

Workflow file for this run

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