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
Compare revisions
a26aab801c7a7bdcf25f7dfec2ab7f8c5a1be885 to 5d25550a29ce3ba6a07ddec9db0720539eb32f32
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
open-source/wp-org-plugin-deploy
Select target project
No results found
5d25550a29ce3ba6a07ddec9db0720539eb32f32
Select Git revision
Swap
Target
open-source/wp-org-plugin-deploy
Select target project
open-source/wp-org-plugin-deploy
1 result
a26aab801c7a7bdcf25f7dfec2ab7f8c5a1be885
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Allow deploy to be skipped without failing the job
· fd79d3b5
Erick Hitter
authored
2 years ago
fd79d3b5
Merge branch 'add/exit-not-configured' into 'master'
· 5d25550a
Erick Hitter
authored
2 years ago
Allow deploy to be skipped without failing the job See merge request
!14
5d25550a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
scripts/deploy.sh
+7
-1
7 additions, 1 deletion
scripts/deploy.sh
with
8 additions
and
1 deletion
README.md
View file @
5d25550a
...
...
@@ -50,6 +50,7 @@ Set the following environment variables in the GitLab project's configuration:
*
`PLUGIN_VERSION`
- version to tag
*
`WP_ORG_RELEASE_REF`
- git commit ref (branch or tag) to use for release
*
`WP_ORG_ASSETS_DIR`
- directory name, relative to repo root, where screenshots and other static assets are held
*
`WP_ORG_DEPLOY_SKIP`
- set to
`1`
to skip the deploy without failing the job
### Alternate loading method
...
...
This diff is collapsed.
Click to expand it.
scripts/deploy.sh
View file @
5d25550a
...
...
@@ -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,
...
...
This diff is collapsed.
Click to expand it.