This Github Action uses official SimpleLocalize CLI.
Learn more: https://simplelocalize.io/docs/integrations/github-actions/
name: 'My project'
on:
push:
branches: [ main, master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Upload translations
uses: simplelocalize/upload@v2.1
with:
apiKey: <YOUR_API_KEY>
uploadPath: ./{lang}/translations.json
uploadFormat: single-language-json
uploadOptions: "PUBLISH_AFTER_IMPORT,REPLACE_TRANSLATION_IF_FOUND" # optional
languageKey: en # optional, it accepts only one language key