forked from devpi/devpi
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.3 KB
/
Copy pathdocs.yml
File metadata and controls
46 lines (44 loc) · 1.3 KB
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
---
name: "Documentation"
on: workflow_dispatch
jobs:
documentation:
name: "Create documentation"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "3.8"
- name: "Install dependencies"
run: |
set -xe -o nounset
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel -r dev-requirements.txt
- name: "Regen documentation"
run: |
set -xe -o nounset
export DEVPI_INDEXNAME="devpi-github/docs"
export PIP_INDEX_URL="https://pypi.org/simple/"
devpi use https://m.devpi.net/devpi-github
devpi login devpi-github --password ${{ secrets.DEVPI_GITHUB_PASSWORD }}
.ci/upload-packages.sh
mkdir .temp
export TMPDIR=$(pwd)/.temp/
pushd doc
make regen
popd
- name: "Build documentation"
run: |
pushd doc
make doczip
popd
- name: "Upload documentation"
run: |
pushd doc
devpi upload *.doc.zip
popd
- name: "Diff documentation"
run: |
git diff --exit-code || echo "::warning::The generated documentation has differences"