Merge pull request #349 from tilfischer/localisation #32
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
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@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "lts/*" | |
- name: Install dependencies | |
run: npm install | |
- name: Write translations | |
run: npm run write-translations | |
- name: Upload translations | |
run: npm run crowdin upload | |
env: | |
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |