aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Franz <info@jonasfranz.software>2017-11-01 07:14:49 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2017-11-01 14:14:49 +0800
commite9595a962ba5f9a9c5b53b9318bc56b39a00b616 (patch)
tree562033f4db4fdd212df88688745226a7979f0cad
parent1b6a962e709925654882e70260f5623da72b785f (diff)
downloadgitea-e9595a962ba5f9a9c5b53b9318bc56b39a00b616.tar.gz
gitea-e9595a962ba5f9a9c5b53b9318bc56b39a00b616.zip
Download and pushing translations (#2727)
* Download and pushing translations * Adding empty line between build steps
-rw-r--r--.drone.yml45
1 files changed, 35 insertions, 10 deletions
diff --git a/.drone.yml b/.drone.yml
index 900c1723f3..35c7b13771 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -9,6 +9,29 @@ clone:
tags: true
pipeline:
+ download_translations:
+ image: jonasfranz/crowdin
+ pull: true
+ secrets: [ crowdin_key ]
+ project_identifier: gitea
+ ignore_branch: true
+ download: true
+ export_dir: options/locale/
+ when:
+ event: [ push ]
+ branch: [ master ]
+
+ git_push:
+ image: appleboy/drone-git-push
+ pull: true
+ secrets: [ git_push_ssh_key ]
+ force: false
+ commit: true
+ commit_message: "[skip ci] Updated translations via Crowdin"
+ when:
+ event: [ push ]
+ branch: [ master ]
+
pre-build:
image: webhippie/nodejs:latest
pull: true
@@ -17,6 +40,7 @@ pipeline:
- make stylesheets-check
when:
event: [ push, tag, pull_request ]
+
build:
image: webhippie/golang:edge
pull: true
@@ -212,27 +236,28 @@ pipeline:
event: [ push ]
branch: [ master ]
- translations:
+ github:
+ image: plugins/github-release:1
+ pull: true
+ secrets: [ github_token ]
+ files:
+ - dist/release/*
+ when:
+ event: [ tag ]
+
+ upload_translations:
image: jonasfranz/crowdin
pull: true
secrets: [ crowdin_key ]
project_identifier: gitea
ignore_branch: true
+ download: false
files:
locale_en-US.ini: options/locale/locale_en-US.ini
when:
event: [ push ]
branch: [ master ]
- github:
- image: plugins/github-release:1
- pull: true
- secrets: [ github_token ]
- files:
- - dist/release/*
- when:
- event: [ tag ]
-
discord:
image: appleboy/drone-discord:1.0.0
pull: true