Skip to content
Snippets Groups Projects
Commit 34279384 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

feature(translations): upload translations to repo

parent fcdf6cb8
No related branches found
No related tags found
No related merge requests found
variables:
WPDESK_CI_VERSION: "2023.06.30"
WPDESK_CI_VERSION: "2023.07.10"
MYSQL_ROOT_PASSWORD: "mysql"
MYSQL_DATABASE: "wptest"
MYSQL_USER: "mysql"
......
......@@ -19,3 +19,12 @@ update wpdesk plugins database:
needs:
- deploy to repository
upload translations to repo:
only:
variables:
- $WP_ORG_USER
- $WP_ORG_PASS
- $UPLOAD_TRANSLATIONS == "true"
when: always
needs:
- deploy to repository
\ No newline at end of file
......@@ -19,3 +19,17 @@ prepare translations:
- composer merge-translations
- composer generate-pot
upload translations to repo:
image: gitlab.wpdesk.dev:5050/wpdesk/docker-tests/php-box:7.4
tags:
- vendor
stage: post-deploy
dependencies:
- prepare translations
interruptible: true
when: never
script:
- cd /tmp && git clone git@gitlab.wpdesk.dev:wpdesk/tools/wordpress-translations-uploader.git
- cd /tmp/wordpress-translations-uploader && composer install
- php upload-translations.php ${WP_ORG_USER} ${WP_ORG_PASS} ${CI_PROJECT_NAME} ${CI_PROJECT_DIR}/lang
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment