From 92b160d2a814b0aeeb16524f5c23a813d8f13cec Mon Sep 17 00:00:00 2001 From: John Maguire Date: Sun, 24 May 2020 13:06:59 +0100 Subject: [PATCH] Push translation sources to transifex --- .github/workflows/all.yml | 65 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml index c08a60a0a..da76d9aa0 100644 --- a/.github/workflows/all.yml +++ b/.github/workflows/all.yml @@ -8,6 +8,71 @@ on: - master jobs: + push_translations: + name: Push translation sources to Transifex + if: github.ref == 'refs/heads/master' + runs-on: ubuntu-18.04 + container: + image: ubuntu:bionic + steps: + - name: Install dependencies + env: + DEBIAN_FRONTEND: noninteractive + run: > + apt-get update && apt-get install -y + build-essential + cmake + gettext + git + libasound2-dev + libboost-dev + libcdio-dev + libchromaprint-dev + libdbus-1-dev + libfftw3-dev + libglew1.5-dev + libglib2.0-dev + libgpod-dev + libgstreamer-plugins-base1.0-dev + libgstreamer1.0-dev + liblastfm5-dev + libmtp-dev + libprotobuf-dev + libpulse-dev + libqt5x11extras5-dev + libsqlite3-dev + libtag1-dev + pkg-config + protobuf-compiler + python-pip + qtbase5-dev + qttools5-dev-tools + qttools5-dev + libsparsehash-dev + ssh + - name: Install tx + run: pip install transifex-client==0.13.9 + - name: Checkout + uses: actions/checkout@v1.2.0 + - name: tx init + env: + TX_TOKEN: ${{ secrets.TX_TOKEN }} + run: tx init --no-interactive --force + - name: cmake + working-directory: bin + run: cmake .. + - name: make + working-directory: bin + run: make -j2 + - name: tx config + env: + TX_TOKEN: ${{ secrets.TX_TOKEN }} + run: tx config mapping --execute -r clementine.clementineplayer -f src/translations/translations.pot -s en -t PO --expression 'src/translations/.po' + - name: tx push + env: + TX_TOKEN: ${{ secrets.TX_TOKEN }} + run: tx push -s + create_release: name: Create GitHub Release runs-on: ubuntu-18.04