Skip to content
Snippets Groups Projects
Commit 365fded3 authored by Erick Hitter's avatar Erick Hitter
Browse files

Merge branch 'fix/assets-not-used' into 'master'

Trigger static-asset cleanup by ensuring directory exists, even when empty

See merge request !10
parents 044735c6 9bb70cb1
No related branches found
No related tags found
1 merge request!10Trigger static-asset cleanup by ensuring directory exists, even when empty
Pipeline #819 passed with stage
in 13 seconds
......@@ -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: 2019041402"
echo "ℹ︎ WP-ORG-PLUGIN-DEPLOY VERSION: 2019041403"
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}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment