From 52ffa0b675f7ff4059a13d3e380884e1efaecc12 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Sat, 13 Apr 2024 19:54:50 +0200 Subject: [PATCH] Add a job to build i18n file --- .github/workflows/i18n.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/i18n.yml diff --git a/.github/workflows/i18n.yml b/.github/workflows/i18n.yml new file mode 100644 index 00000000..9f511c94 --- /dev/null +++ b/.github/workflows/i18n.yml @@ -0,0 +1,32 @@ +name: Build + +on: + pull_request: + branches: + - i18n/* + +jobs: + buildI18n: + runs-on: ubuntu-latest + steps: + - name: Python Setup + uses: actions/setup-python@v5 + with: + python-version: "3.11" + architecture: x64 + - name: Install Packages (apt) + run: | + sudo apt update + sudo apt install qttools5-dev-tools + - name: Checkout Source + uses: actions/checkout@v4 + - name: Build Assets + run: python pkgutils.py qtlrelease + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: nw-i18n + path: | + novelwriter/assets/i18n/*.qm + if-no-files-found: error + retention-days: 7