Skip to content

Commit e9595a9

Browse files
jonasfranzlunny
authored andcommitted
Download and pushing translations (#2727)
* Download and pushing translations * Adding empty line between build steps
1 parent 1b6a962 commit e9595a9

File tree

1 file changed

+35
-10
lines changed

1 file changed

+35
-10
lines changed

.drone.yml

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,29 @@ clone:
99
tags: true
1010

1111
pipeline:
12+
download_translations:
13+
image: jonasfranz/crowdin
14+
pull: true
15+
secrets: [ crowdin_key ]
16+
project_identifier: gitea
17+
ignore_branch: true
18+
download: true
19+
export_dir: options/locale/
20+
when:
21+
event: [ push ]
22+
branch: [ master ]
23+
24+
git_push:
25+
image: appleboy/drone-git-push
26+
pull: true
27+
secrets: [ git_push_ssh_key ]
28+
force: false
29+
commit: true
30+
commit_message: "[skip ci] Updated translations via Crowdin"
31+
when:
32+
event: [ push ]
33+
branch: [ master ]
34+
1235
pre-build:
1336
image: webhippie/nodejs:latest
1437
pull: true
@@ -17,6 +40,7 @@ pipeline:
1740
- make stylesheets-check
1841
when:
1942
event: [ push, tag, pull_request ]
43+
2044
build:
2145
image: webhippie/golang:edge
2246
pull: true
@@ -212,27 +236,28 @@ pipeline:
212236
event: [ push ]
213237
branch: [ master ]
214238

215-
translations:
239+
github:
240+
image: plugins/github-release:1
241+
pull: true
242+
secrets: [ github_token ]
243+
files:
244+
- dist/release/*
245+
when:
246+
event: [ tag ]
247+
248+
upload_translations:
216249
image: jonasfranz/crowdin
217250
pull: true
218251
secrets: [ crowdin_key ]
219252
project_identifier: gitea
220253
ignore_branch: true
254+
download: false
221255
files:
222256
locale_en-US.ini: options/locale/locale_en-US.ini
223257
when:
224258
event: [ push ]
225259
branch: [ master ]
226260

227-
github:
228-
image: plugins/github-release:1
229-
pull: true
230-
secrets: [ github_token ]
231-
files:
232-
- dist/release/*
233-
when:
234-
event: [ tag ]
235-
236261
discord:
237262
image: appleboy/drone-discord:1.0.0
238263
pull: true

0 commit comments

Comments
 (0)