|
6 | 6 | permissions: |
7 | 7 | contents: write |
8 | 8 |
|
9 | | -concurrency: |
10 | | - group: ${{ github.ref }} |
11 | | - cancel-in-progress: true |
12 | | - |
13 | 9 | jobs: |
| 10 | + check-weblate-commit: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - name: check commit message and cancel self - if Weblate Commit |
| 14 | + if: contains(github.event.head_commit.message, 'Translated using Weblate') |
| 15 | + |
| 16 | + |
| 17 | + - name: TODO - start delayed (15mins?) full build |
| 18 | + if: contains(github.event.head_commit.message, 'Translated using Weblate') |
| 19 | + run: echo "dummy" |
| 20 | + |
| 21 | + - name: busy wait until cancel - if weblate commit |
| 22 | + if: contains(github.event.head_commit.message, 'Translated using Weblate') |
| 23 | + run: | |
| 24 | + echo "busy wait" |
| 25 | + sleep inf |
| 26 | + |
14 | 27 | full-build: |
| 28 | + needs: [ check-weblate-commit ] |
| 29 | + concurrency: |
| 30 | + group: ${{ github.ref }} |
| 31 | + cancel-in-progress: true |
| 32 | + |
15 | 33 | runs-on: ubuntu-latest |
16 | 34 | container: |
17 | 35 | image: sphinxdoc/sphinx |
18 | 36 | #options: --user 1001 (only if we don't need apt-get) |
| 37 | + |
19 | 38 | env: |
20 | 39 | MAIN_LANGS: en |
21 | | - OTHER_LANGS: es fr ru nl it ja el bg da et fi lv lt pl pt ro sv sk sl cs hu zh_CN |
| 40 | + OTHER_LANGS: de es fr ru nl it ja el bg da et fi lv lt pl pt ro sv sk sl cs hu zh_CN |
22 | 41 |
|
23 | 42 | steps: |
24 | 43 | - name: Install git |
|
37 | 56 | mkdir -p dist/en |
38 | 57 | mkdir -p build/en/doctrees |
39 | 58 | sphinx-build -j auto -b html -D language=en -d build/en/doctrees source dist/en |
| 59 | + # remove/cleanup dist/en/_sources |
40 | 60 |
|
41 | 61 | - name: upload quick build artifact |
42 | 62 | id: upload-quick |
@@ -93,8 +113,10 @@ jobs: |
93 | 113 | mkdir -p dist/$lang |
94 | 114 | mkdir -p build/$lang/doctrees |
95 | 115 | sphinx-build -j auto -b html -D language=$lang -d build/$lang/doctrees source dist/$lang |
| 116 | + # remove/cleanup dist/$lang/_sources |
96 | 117 | done |
97 | 118 |
|
| 119 | +
|
98 | 120 | - name: upload full build artifact |
99 | 121 | id: upload-full |
100 | 122 | uses: actions/upload-artifact@v4 |
|
0 commit comments