Merge branch 'main' into feature/add_ats_documentation #166
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 plantuml | |
run: | | |
sudo apt-get install plantuml -y | |
- name: Python install | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt | |
- 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 }} |