From 9e42559d70b430e95787385fde8fc8a62bb28ed7 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 13 Jul 2021 12:06:50 +0200 Subject: [PATCH] Add syncing translations to crowdin --- .drone.yml | 52 ++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 36 insertions(+), 16 deletions(-) diff --git a/.drone.yml b/.drone.yml index c4e9e67e..325d6653 100644 --- a/.drone.yml +++ b/.drone.yml @@ -530,7 +530,7 @@ steps: - failure --- kind: pipeline -name: ping-weblate +name: update-translations depends_on: - build @@ -542,20 +542,40 @@ trigger: - push steps: - - name: update-translation-base - image: appleboy/drone-git-push - failure: ignore +# - name: download +# pull: always +# 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: - branch: translations - remote: ssh://git@kolaente.dev:9022/vikunja/frontend.git - ssh_key: - from_secret: translations_branch_update_ssh_key - - name: notify-weblate - image: curlimages/curl - depends_on: - - update-translation-base + files: + en.json: src/i18n/lang/en.json + ignore_branch: true + project_identifier: vikunja environment: - WEBLATE_TOKEN: - from_secret: weblate_token - commands: - - ./ping-weblate.sh + CROWDIN_KEY: + from_secret: crowdin_key