зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-29 21:16:06 +02:00
* add sphinx doc * add github pages files * create docs workflow * add sphinx requirements * add napoleon ext * fix name typo
32 строки
731 B
YAML
32 строки
731 B
YAML
name: Pages
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.9'
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
|
|
- name: install misinformation
|
|
run: |
|
|
pip install -e .
|
|
python -m pip install -r requirements-dev.txt
|
|
- name: Build documentation
|
|
run: |
|
|
cd docs
|
|
make html
|
|
- name: Push changes to gh-pages
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
with:
|
|
folder: docs # The folder the action should deploy.
|