From b909bc3986e601d3dd09a6ca715e255e63914ad1 Mon Sep 17 00:00:00 2001
From: Erick Hitter <git-contrib@ethitter.com>
Date: Sat, 13 Apr 2019 16:58:16 -0700
Subject: [PATCH] tar doesn't create the directory

---
 bin/deploy.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/deploy.sh b/bin/deploy.sh
index d9403b4..d910f43 100755
--- a/bin/deploy.sh
+++ b/bin/deploy.sh
@@ -62,8 +62,8 @@ echo "ℹ︎ PLUGIN_SLUG is $PLUGIN_SLUG"
 echo "ℹ︎ PLUGIN_VERSION is $PLUGIN_VERSION"
 
 SVN_URL="https://plugins.svn.wordpress.org/${PLUGIN_SLUG}/"
-SVN_DIR="/tmp/svn-${PLUGIN_SLUG}"
-TMP_DIR="/tmp/git-archive"
+SVN_DIR="$CI_BUILDS_DIR/svn-${PLUGIN_SLUG}"
+TMP_DIR="$CI_BUILDS_DIR/git-archive"
 
 # Checkout just trunk for efficiency
 # Tagging will be handled on the SVN level
@@ -93,6 +93,7 @@ if [[ ! -e "$CI_PROJECT_DIR/.gitattributes" ]]; then
 fi
 
 # This will exclude everything in the .gitattributes file with the export-ignore flag
+mkdir "$TMP_DIR"
 git archive HEAD | tar x --directory="$TMP_DIR"
 
 cd "$SVN_DIR"
-- 
GitLab