-
Notifications
You must be signed in to change notification settings - Fork 10
62 lines (52 loc) · 1.25 KB
/
build.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# vim:sw=2:ts=2
# build html version of docs
name: build
# on events
on:
pull_request:
branches:
- master
- 'feature/*'
jobs:
build:
runs-on: ubuntu-latest
name: build
steps:
- uses: actions/checkout@v4
- uses: sphinx-doc/github-problem-matcher@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build docs
run: |
make clean html
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: html_build
path: _build
if-no-files-found: error
deploy:
runs-on: ubuntu-latest
name: deploy-on-merge
needs: build
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: html_build
path: _build
if-no-files-found: error
- name: Deploy docs
run: |
sftp -P 11022 sftpuser@81.15.242.168 <<EOF
1234
cd uploads
put -R _build
bye
EOF