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