From 746afb70badb8772648d49c912f83719fcbc30f7 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 6 Feb 2023 17:21:57 +0100 Subject: [PATCH] Fix pypi package translations + add translation build artifacts (#87548) --- .github/workflows/builder.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index 7c8f5208232..531efe5674f 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -74,6 +74,11 @@ jobs: with: python-version: ${{ env.DEFAULT_PYTHON }} + - name: Download Translations + run: python3 -m script.translations download + env: + LOKALISE_TOKEN: ${{ secrets.LOKALISE_TOKEN }} + - name: Build package shell: bash run: | @@ -203,6 +208,17 @@ jobs: env: CAS_API_KEY: ${{ secrets.CAS_TOKEN }} + - name: Archive translations + shell: bash + run: find ./homeassistant/components/*/translations -name "*.json" | tar zcvf translations.tar.gz -T - + + - name: Upload translations + uses: actions/upload-artifact@v3 + with: + name: translations + path: translations.tar.gz + if-no-files-found: error + build_machine: name: Build ${{ matrix.machine }} machine core image if: github.repository_owner == 'home-assistant'