Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • master
1 result

Target

Select target project
  • open-source/wp-org-plugin-deploy
1 result
Select Git revision
  • master
1 result
Show changes
Commits on Source (2)
...@@ -50,6 +50,7 @@ Set the following environment variables in the GitLab project's configuration: ...@@ -50,6 +50,7 @@ Set the following environment variables in the GitLab project's configuration:
* `PLUGIN_VERSION` - version to tag * `PLUGIN_VERSION` - version to tag
* `WP_ORG_RELEASE_REF` - git commit ref (branch or tag) to use for release * `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_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 ### Alternate loading method
......
...@@ -16,13 +16,19 @@ function cleanup() { ...@@ -16,13 +16,19 @@ function cleanup() {
# Provide a basic version identifier, particularly since this script # Provide a basic version identifier, particularly since this script
# is usually accessed via CDN. # is usually accessed via CDN.
echo "ℹ︎ WP-ORG-PLUGIN-DEPLOY VERSION: 2019051201" echo "ℹ︎ WP-ORG-PLUGIN-DEPLOY VERSION: 2022070901"
if [[ -z "$CI" ]]; then if [[ -z "$CI" ]]; then
echo "𝘅︎ Script is only to be run by GitLab CI" 1>&2 echo "𝘅︎ Script is only to be run by GitLab CI" 1>&2
exit 1 exit 1
fi 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 # Ensure certain environment variables are set
# IMPORTANT: while access to secrets is restricted in the GitLab UI, # IMPORTANT: while access to secrets is restricted in the GitLab UI,
# they are by necessity provided as plaintext in the context of this script, # they are by necessity provided as plaintext in the context of this script,
......