This commit is contained in:
parent
6479d10d87
commit
8509f08dd6
37
.drone.yaml
37
.drone.yaml
@ -23,3 +23,40 @@ volumes:
|
|||||||
- name: cache
|
- name: cache
|
||||||
claim:
|
claim:
|
||||||
name: docker-cache
|
name: docker-cache
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: kubernetes
|
||||||
|
name: crowdin
|
||||||
|
concurrency:
|
||||||
|
limit: 1
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
metadata:
|
||||||
|
namespace: git
|
||||||
|
steps:
|
||||||
|
- name: Push/Pull translations
|
||||||
|
image: node:current-bullseye
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
path: /cache
|
||||||
|
environment:
|
||||||
|
YARN_CACHE_FOLDER: /cache/.yarn-translations
|
||||||
|
TOKEN:
|
||||||
|
from_secret: gitea
|
||||||
|
CTOKEN:
|
||||||
|
from_secret: crowdin
|
||||||
|
commands:
|
||||||
|
- git config --global user.email drone@v0l.io
|
||||||
|
- git config --global user.name "Drone CI"
|
||||||
|
- git remote set-url origin https://drone:$TOKEN@git.v0l.io/Kieran/stream.git
|
||||||
|
- yarn install
|
||||||
|
- npx @crowdin/cli upload sources -b main -T $CTOKEN
|
||||||
|
- npx @crowdin/cli pull -b main -T $CTOKEN
|
||||||
|
- git add .
|
||||||
|
- 'git commit -a -m "chore: Update translations"'
|
||||||
|
- git push -u origin main
|
||||||
|
volumes:
|
||||||
|
- name: cache
|
||||||
|
claim:
|
||||||
|
name: docker-cache
|
5
crowdin.yml
Normal file
5
crowdin.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
project_id: 610631
|
||||||
|
preserve_hierarchy: true
|
||||||
|
files:
|
||||||
|
- source: src/lang.json
|
||||||
|
translation: src/translations/%locale_with_underscore%.json
|
Loading…
Reference in New Issue
Block a user