Eln chemotion #190
This file contains hidden or 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
| name: Localisation Workflow | |
| on: | |
| push: | |
| branches: | |
| - localisation | |
| pull_request: | |
| branches: | |
| - localisation | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: github.ref == 'refs/heads/localisation' || github.event_name == 'workflow_dispatch' | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "lts/*" | |
| - name: Set up Java 17 (Temurin) | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| - name: Install dependencies | |
| run: npm ci || npm install | |
| - name: Write translations | |
| run: npm run write-translations | |
| - name: Clear jdeploy cache | |
| run: | | |
| rm -rf ~/.jdeploy || true | |
| mkdir -p ~/.jdeploy | |
| - name: Upload translations | |
| run: npm run crowdin upload | |
| env: | |
| CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |