Commit 0a88d0c1 authored by Erick Hitter's avatar Erick Hitter
Browse files

Add (deprecated) loader script

parent 74d42324
......@@ -4,6 +4,9 @@ Deploy plugin updates to's plugin SVN. Modeled on [10up's GitHub a
## Configuration
1. Add the `.gitlab-ci.yml` configuration described below.
1. Set the environment variables in the GitLab project.
### `.gitlab-ci.yml`
Add the following to the plugin's `.gitlab-ci.yml`:
......@@ -15,6 +18,8 @@ PluginSVN:
- apt-get update
- apt-get install -y rsync
- curl -o ./bin/
- chmod +x ./bin/
script: ./bin/
when: on_success
......@@ -37,3 +42,7 @@ Set the following environment variables in the GitLab project's configuration:
* `PLUGIN_SLUG` - plugin's name on
* `PLUGIN_VERSION` - version to tag
* `WP_ORG_RELEASE_REF` - commit ref (branch or tag) to use for release
### Alternatives
A [loader script](./scripts/ is available as an alternative to downloading the deploy script during the `before_script` stage.
#!/usr/bin/env bash
# Note that this does not use pipefail
# because if the grep later doesn't match any deleted files,
# which is likely the majority case,
# it does not exit with a 0, and I only care about the final exit.
set -eo
# Download shared script and execute.
# See
echo "ℹ︎ Downloading script from $DEPLOY_SCRIPT_SRC"
chmod +x "./${DEPLOY_SCRIPT_NAME}"
echo "ℹ︎ Running $DEPLOY_SCRIPT_NAME"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment