-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (38 loc) · 1.23 KB
/
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
34
35
36
37
38
39
# SPDX-FileCopyrightText: © 2022 the SimWeights contributors
#
# SPDX-License-Identifier: BSD-2-Clause
name: Docs
on:
push:
branches:
- main
pull_request:
jobs:
Docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[docs]
- name: Run Sphinx
working-directory: ./docs
run: make html SPHINXOPTS="-W --keep-going"
- name: Upload docs to docs.icecube.aq
if: ${{ github.ref_name == 'main' && !github.event.act }}
working-directory: ./docs
run: |
tar -czvf simweights_docs.tar.gz -C_build/html .
curl -XPUT -i --data-binary @simweights_docs.tar.gz https://docs.icecube.aq/api/upload?path=simweights/${{ github.ref_name }} -u icecube:${{ secrets.ICECUBE_PASSWORD }}
- name: Check Links
working-directory: ./docs
env:
ICECUBE_PASSWORD: ${{ secrets.ICECUBE_PASSWORD }}
run: make linkcheck SPHINXOPTS="-W --keep-going"