Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-ci
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
gitlab-ci
Commits
34279384
Commit
34279384
authored
2 years ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
feature(translations): upload translations to repo
parent
fcdf6cb8
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
gitlab-ci-1.2.yml
+1
-1
1 addition, 1 deletion
gitlab-ci-1.2.yml
gitlab-ci-free.yml
+9
-0
9 additions, 0 deletions
gitlab-ci-free.yml
includes/translations.yml
+14
-0
14 additions, 0 deletions
includes/translations.yml
with
24 additions
and
1 deletion
gitlab-ci-1.2.yml
+
1
−
1
View file @
34279384
variables
:
WPDESK_CI_VERSION
:
"
2023.0
6.3
0"
WPDESK_CI_VERSION
:
"
2023.0
7.1
0"
MYSQL_ROOT_PASSWORD
:
"
mysql"
MYSQL_DATABASE
:
"
wptest"
MYSQL_USER
:
"
mysql"
...
...
This diff is collapsed.
Click to expand it.
gitlab-ci-free.yml
+
9
−
0
View file @
34279384
...
...
@@ -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
This diff is collapsed.
Click to expand it.
includes/translations.yml
+
14
−
0
View file @
34279384
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment