Add syncing translations to crowdin
This commit is contained in:
parent
f0e093b3d6
commit
9e42559d70
1 changed files with 36 additions and 16 deletions
52
.drone.yml
52
.drone.yml
|
@ -530,7 +530,7 @@ steps:
|
||||||
- failure
|
- failure
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
name: ping-weblate
|
name: update-translations
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
@ -542,20 +542,40 @@ trigger:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: update-translation-base
|
# - name: download
|
||||||
image: appleboy/drone-git-push
|
# pull: always
|
||||||
failure: ignore
|
# image: jonasfranz/crowdin
|
||||||
|
# settings:
|
||||||
|
# download: true
|
||||||
|
# export_dir: src/i18n/lang/
|
||||||
|
# ignore_branch: true
|
||||||
|
# project_identifier: vikunja
|
||||||
|
# environment:
|
||||||
|
# CROWDIN_KEY:
|
||||||
|
# from_secret: crowdin_key
|
||||||
|
#
|
||||||
|
# - name: push
|
||||||
|
# pull: always
|
||||||
|
# image: appleboy/drone-git-push
|
||||||
|
# settings:
|
||||||
|
# author_email: "frederik@vikunja.io"
|
||||||
|
# author_name: Frederick [Bot]
|
||||||
|
# branch: main
|
||||||
|
# commit: true
|
||||||
|
# commit_message: "[skip ci] Updated translations via Crowdin"
|
||||||
|
# remote: "git@kolaente.dev:9022/vikunja/frontend.git"
|
||||||
|
# environment:
|
||||||
|
# GIT_PUSH_SSH_KEY:
|
||||||
|
# from_secret: git_push_ssh_key
|
||||||
|
|
||||||
|
- name: upload
|
||||||
|
pull: always
|
||||||
|
image: jonasfranz/crowdin
|
||||||
settings:
|
settings:
|
||||||
branch: translations
|
files:
|
||||||
remote: ssh://git@kolaente.dev:9022/vikunja/frontend.git
|
en.json: src/i18n/lang/en.json
|
||||||
ssh_key:
|
ignore_branch: true
|
||||||
from_secret: translations_branch_update_ssh_key
|
project_identifier: vikunja
|
||||||
- name: notify-weblate
|
|
||||||
image: curlimages/curl
|
|
||||||
depends_on:
|
|
||||||
- update-translation-base
|
|
||||||
environment:
|
environment:
|
||||||
WEBLATE_TOKEN:
|
CROWDIN_KEY:
|
||||||
from_secret: weblate_token
|
from_secret: crowdin_key
|
||||||
commands:
|
|
||||||
- ./ping-weblate.sh
|
|
||||||
|
|
Loading…
Reference in a new issue