| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,37 +1,40 @@ | |||
| 1 | - --- | ||
| 2 | - | ||
| 3 | 1 | name: Tests | |
| 4 | 2 | ||
| 5 | 3 | on: | |
| 6 | 4 | push: | |
| 7 | - branches: | ||
| 8 | - - master | ||
| 9 | 5 | pull_request: | |
| 10 | - branches: | ||
| 11 | - - master | ||
| 6 | + workflow_dispatch: | ||
| 12 | 7 | ||
| 13 | 8 | jobs: | |
| 14 | 9 | build_doc: | |
| 15 | - name: 'Build cpython doc' | ||
| 10 | + name: Build CPython documentation | ||
| 16 | 11 | runs-on: ubuntu-latest | |
| 17 | 12 | steps: | |
| 18 | - - uses: actions/checkout@v2 | ||
| 19 | - - uses: actions/setup-python@v2 | ||
| 13 | + - uses: actions/checkout@v3 | ||
| 14 | + - uses: actions/setup-python@v4 | ||
| 20 | 15 | with: | |
| 21 | - python-version: 3.8 | ||
| 22 | - - name: clone docsbuild scripts | ||
| 16 | + python-version: 3 | ||
| 17 | + - name: Clone docsbuild scripts | ||
| 23 | 18 | run: | | |
| 24 | 19 | git clone https://github.com/python/docsbuild-scripts/ | |
| 25 | - - name: setup requirements | ||
| 20 | + - name: Set up requirements | ||
| 26 | 21 | run: | | |
| 27 | 22 | python -m pip install --upgrade pip | |
| 28 | - python -m pip install jinja2 markupsafe zc.lockfile | ||
| 29 | - - name: build docs | ||
| 30 | - run: | | ||
| 31 | - python3 ./docsbuild-scripts/build_docs.py --quick --build-root ./build_root --www-root ./www --log-directory ./logs --group $(id -g) --skip-cache-invalidation --theme $(pwd) --language en --branch 3.9 | ||
| 32 | - cat logs/docsbuild.log | ||
| 33 | - - name: 'Upload' | ||
| 34 | - uses: actions/upload-artifact@v2.2.2 | ||
| 23 | + python -m pip install -r docsbuild-scripts/requirements.txt | ||
| 24 | + - name: Build documentation | ||
| 25 | + run: > | ||
| 26 | + python ./docsbuild-scripts/build_docs.py | ||
| 27 | + --quick | ||
| 28 | + --build-root ./build_root | ||
| 29 | + --www-root ./www | ||
| 30 | + --log-directory ./logs | ||
| 31 | + --group $(id -g) | ||
| 32 | + --skip-cache-invalidation | ||
| 33 | + --theme $(pwd) | ||
| 34 | + --language en | ||
| 35 | + --branch 3.11 | ||
| 36 | + - name: Upload | ||
| 37 | + uses: actions/upload-artifact@v3 | ||
| 35 | 38 | with: | |
| 36 | 39 | name: doc-html | |
| 37 | 40 | path: www/ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments