-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.43 KB
/
ci.yaml
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
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # full history for metadata
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install latest plantuml version
run: |
sudo bash -c "curl -L https://raw.githubusercontent.com/riboseinc/plantuml-install/main/ubuntu.sh | bash"
- name: Python install
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Replace plantuml to {uml} to be rendered
run: |
find . -type f -name "*.md" -exec sed -i -E 's/^```plantuml/```{uml}/g' {} +
- name: Sphinx build
run: |
make html
- uses: actions/upload-artifact@v4
with:
name: html
path: _build/html
retention-days: 1
deploy:
needs: [build]
runs-on: ubuntu-latest
container: python:3.11
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/download-artifact@v4
with:
name: html
path: html_build
- name: Upload documentation
uses: lsst-sqre/ltd-upload@v1
with:
project: "ts-tma"
dir: "html_build"
username: ${{ secrets.ltd_username }}
password: ${{ secrets.ltd_password }}