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
1
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
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
!14
Allow deploy to be skipped without failing the job
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Allow deploy to be skipped without failing the job
add/exit-not-configured
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Erick Hitter
requested to merge
add/exit-not-configured
into
master
2 years ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
fd79d3b5
1 commit,
2 years ago
2 files
+
8
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
scripts/deploy.sh
+
7
−
1
Options
@@ -16,13 +16,19 @@ function cleanup() {
# Provide a basic version identifier, particularly since this script
# is usually accessed via CDN.
echo
"ℹ︎ WP-ORG-PLUGIN-DEPLOY VERSION: 20
190512
01"
echo
"ℹ︎ WP-ORG-PLUGIN-DEPLOY VERSION: 20
220709
01"
if
[[
-z
"
$CI
"
]]
;
then
echo
"𝘅︎ Script is only to be run by GitLab CI"
1>&2
exit
1
fi
# Allow deploy to be skipped if desired.
if
[[
"1"
==
"
$WP_ORG_DEPLOY_SKIP
"
]]
;
then
echo
"ℹ︎ WordPress.org deploy skipped due to WP_ORG_DEPLOY_SKIP variable"
1>&2
exit
0
fi
# Ensure certain environment variables are set
# IMPORTANT: while access to secrets is restricted in the GitLab UI,
# they are by necessity provided as plaintext in the context of this script,
Loading