Download and pushing translations (#2727)
* Download and pushing translations * Adding empty line between build steps
This commit is contained in:
parent
1b6a962e70
commit
e9595a962b
49
.drone.yml
49
.drone.yml
|
@ -9,6 +9,29 @@ clone:
|
||||||
tags: true
|
tags: true
|
||||||
|
|
||||||
pipeline:
|
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:
|
pre-build:
|
||||||
image: webhippie/nodejs:latest
|
image: webhippie/nodejs:latest
|
||||||
pull: true
|
pull: true
|
||||||
|
@ -17,6 +40,7 @@ pipeline:
|
||||||
- make stylesheets-check
|
- make stylesheets-check
|
||||||
when:
|
when:
|
||||||
event: [ push, tag, pull_request ]
|
event: [ push, tag, pull_request ]
|
||||||
|
|
||||||
build:
|
build:
|
||||||
image: webhippie/golang:edge
|
image: webhippie/golang:edge
|
||||||
pull: true
|
pull: true
|
||||||
|
@ -212,18 +236,6 @@ pipeline:
|
||||||
event: [ push ]
|
event: [ push ]
|
||||||
branch: [ master ]
|
branch: [ master ]
|
||||||
|
|
||||||
translations:
|
|
||||||
image: jonasfranz/crowdin
|
|
||||||
pull: true
|
|
||||||
secrets: [ crowdin_key ]
|
|
||||||
project_identifier: gitea
|
|
||||||
ignore_branch: true
|
|
||||||
files:
|
|
||||||
locale_en-US.ini: options/locale/locale_en-US.ini
|
|
||||||
when:
|
|
||||||
event: [ push ]
|
|
||||||
branch: [ master ]
|
|
||||||
|
|
||||||
github:
|
github:
|
||||||
image: plugins/github-release:1
|
image: plugins/github-release:1
|
||||||
pull: true
|
pull: true
|
||||||
|
@ -233,6 +245,19 @@ pipeline:
|
||||||
when:
|
when:
|
||||||
event: [ tag ]
|
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 ]
|
||||||
|
|
||||||
discord:
|
discord:
|
||||||
image: appleboy/drone-discord:1.0.0
|
image: appleboy/drone-discord:1.0.0
|
||||||
pull: true
|
pull: true
|
||||||
|
|
Loading…
Reference in a new issue