-
Notifications
You must be signed in to change notification settings - Fork 119
33 lines (30 loc) · 928 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Docs
on:
push:
paths: ['docs/**', '.github/workflows/docs.yml', 'CHANGELOG.rst']
pull_request:
paths: ['docs/**', '.github/workflows/docs.yml', 'CHANGELOG.rst']
permissions:
contents: read
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: pip install -r docs/requirements.txt
- name: Build docs
run: |
cd docs
sphinx-build -b html -n -W --keep-going -j auto . _build
- name: Upload docs
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.DOCS_KEY }}
ARGS: '-rzvc'
SOURCE: 'docs/_build/'
REMOTE_HOST: ${{ secrets.DOCS_HOST }}
REMOTE_USER: ${{ secrets.DOCS_USER }}
TARGET: '_build/docs/'
SCRIPT_BEFORE: mkdir -p _build
SCRIPT_AFTER: ./initdocs.sh && echo $RSYNC_STDOUT