We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 16af012 + 4cc6234 commit 38e8571Copy full SHA for 38e8571
1 file changed
deploy.sh
@@ -58,14 +58,19 @@ fi
58
SVN_URL="https://plugins.svn.wordpress.org/${SLUG}/"
59
SVN_DIR="${HOME}/svn-${SLUG}"
60
61
-# Checkout just trunk and assets for efficiency
62
-# Tagging will be handled on the SVN level
+# Checkout SVN repository.
63
echo "➤ Checking out .org repository..."
64
svn checkout --depth immediates "$SVN_URL" "$SVN_DIR"
65
cd "$SVN_DIR"
66
svn update --set-depth infinity assets
67
svn update --set-depth infinity trunk
+svn update --set-depth immediates tags
68
69
+# Bail early if the plugin version is already published.
70
+if [[ -d "tags/$VERSION" ]]; then
71
+ echo "ℹ︎ Version $VERSION of plugin $SLUG was already published";
72
+ exit
73
+fi
74
75
if [[ "$BUILD_DIR" = false ]]; then
76
echo "➤ Copying files..."
0 commit comments