Skip to content

Download and pushing translations #2727

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 1, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 35 additions & 10 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,29 @@ clone:
tags: true

pipeline:
download_translations:
image: jonasfranz/crowdin
pull: true
secrets: [ crowdin_key ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be added to drone server right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No this is already added during the upload process

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
Expand All @@ -17,6 +40,7 @@ pipeline:
- make stylesheets-check
when:
event: [ push, tag, pull_request ]

build:
image: webhippie/golang:edge
pull: true
Expand Down Expand Up @@ -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
Expand Down