Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
WP.org Plugin Deploy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
WP.org Plugin Deploy
Merge requests
!10
Trigger static-asset cleanup by ensuring directory exists, even when empty
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Trigger static-asset cleanup by ensuring directory exists, even when empty
fix/assets-not-used
into
master
Overview
0
Commits
1
Pipelines
1
Changes
1
Merged
Erick Hitter
requested to merge
fix/assets-not-used
into
master
6 years ago
Overview
0
Commits
1
Pipelines
1
Changes
1
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
9bb70cb1
1 commit,
6 years ago
1 file
+
7
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
scripts/deploy.sh
+
7
−
1
Options
@@ -8,7 +8,7 @@ set -eo
# Provide a basic version identifier, particularly since this script
# is usually accessed via CDN.
echo
"ℹ︎ WP-ORG-PLUGIN-DEPLOY VERSION: 201904140
2
"
echo
"ℹ︎ WP-ORG-PLUGIN-DEPLOY VERSION: 201904140
3
"
if
[[
-z
"
$CI
"
]]
;
then
echo
"𝘅︎ Script is only to be run by GitLab CI"
1>&2
@@ -43,6 +43,12 @@ if [[ -z "$WP_ORG_ASSETS_DIR" ]]; then
WP_ORG_ASSETS_DIR
=
".wordpress-org"
fi
# Create empty static-assets directory if needed, triggering
# removal of any stray assets in svn.
if
[[
!
-d
"
${
CI_PROJECT_DIR
}
/
${
WP_ORG_ASSETS_DIR
}
/"
]]
;
then
mkdir
-p
"
${
CI_PROJECT_DIR
}
/
${
WP_ORG_ASSETS_DIR
}
/"
fi
echo
"ℹ︎ PLUGIN_SLUG:
${
PLUGIN_SLUG
}
"
echo
"ℹ︎ PLUGIN_VERSION:
${
PLUGIN_VERSION
}
"
echo
"ℹ︎ WP_ORG_RELEASE_REF:
${
WP_ORG_RELEASE_REF
}
"
Loading