CI: Setup pushing-translation procedure in CI.
This commit is contained in:
19
.drone.yml
19
.drone.yml
@ -17,6 +17,23 @@ steps:
|
||||
- push
|
||||
- tag
|
||||
|
||||
- name: push-translation
|
||||
image: debian
|
||||
environment:
|
||||
TRADUORA_R_CLIENT:
|
||||
from_secret: TRADUORA_R_CLIENT
|
||||
TRADUORA_R_SECRET:
|
||||
from_secret: TRADUORA_R_SECRET
|
||||
TRADUORA_W_CLIENT:
|
||||
from_secret: TRADUORA_W_CLIENT
|
||||
TRADUORA_W_SECRET:
|
||||
from_secret: TRADUORA_W_SECRET
|
||||
GITHUB_API:
|
||||
from_secret: GITHUB_API
|
||||
commands:
|
||||
- apt update && apt install -y git python3-requests hub
|
||||
- SOURCE_DIR=$(pwd) ./scripts/update_translation_to_server.sh
|
||||
|
||||
- name: translate-html
|
||||
image: python:3
|
||||
commands:
|
||||
@ -126,7 +143,7 @@ steps:
|
||||
from_secret: GITHUB_API
|
||||
commands:
|
||||
- apt update && apt install -y git python3-requests hub
|
||||
- SOURCE_DIR=$(pwd) ./scripts/commit_new_translation.sh
|
||||
- PUSH=1 SOURCE_DIR=$(pwd) ./scripts/commit_new_translation.sh
|
||||
|
||||
node:
|
||||
location: external
|
||||
|
Reference in New Issue
Block a user