-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,19 +6,38 @@ on: | |
permissions: | ||
contents: write | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
check-weblate-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: check commit message and cancel self - if Weblate Commit | ||
if: contains(github.event.head_commit.message, 'Translated using Weblate') | ||
uses: andymckay/[email protected] | ||
|
||
- name: TODO - start delayed (15mins?) full build | ||
if: contains(github.event.head_commit.message, 'Translated using Weblate') | ||
run: echo "dummy" | ||
|
||
- name: busy wait until cancel - if weblate commit | ||
if: contains(github.event.head_commit.message, 'Translated using Weblate') | ||
run: | | ||
echo "busy wait" | ||
sleep inf | ||
full-build: | ||
needs: [ check-weblate-commit ] | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: sphinxdoc/sphinx | ||
#options: --user 1001 (only if we don't need apt-get) | ||
|
||
env: | ||
MAIN_LANGS: en | ||
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 | ||
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 | ||
|
||
steps: | ||
- name: Install git | ||
|
@@ -37,6 +56,7 @@ jobs: | |
mkdir -p dist/en | ||
mkdir -p build/en/doctrees | ||
sphinx-build -j auto -b html -D language=en -d build/en/doctrees source dist/en | ||
# remove/cleanup dist/en/_sources | ||
- name: upload quick build artifact | ||
id: upload-quick | ||
|
@@ -93,8 +113,10 @@ jobs: | |
mkdir -p dist/$lang | ||
mkdir -p build/$lang/doctrees | ||
sphinx-build -j auto -b html -D language=$lang -d build/$lang/doctrees source dist/$lang | ||
# remove/cleanup dist/$lang/_sources | ||
done | ||
- name: upload full build artifact | ||
id: upload-full | ||
uses: actions/upload-artifact@v4 | ||
|