From 154776f6f83a61aadab2438960d77ddc66881bb5 Mon Sep 17 00:00:00 2001 From: introkun Date: Wed, 27 Mar 2024 18:24:20 -0300 Subject: [PATCH] update CI --- .github/workflows/deploy.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8140531..49c7e9c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -20,12 +20,17 @@ jobs: username: ${{secrets.SSH_USERNAME}} script: | + set -e + appName=oculus-deals-spider-bot appDir=/opt/$appName - tempDir=$(mktemp -d /opt/oculus-deals-spider-bot.XXXXXXXXX) - mkdir $tempDir + tempDir=$(mktemp -d /tmp/oculus-deals-spider-bot.XXXXXXXXX) + + rm -rf "$tempDir" # Remove existing temp directory if it exists + mkdir -p "$tempDir" # Recreate temp directory + cd $tempDir - git clone git@github.com:introkun/oculus-deals-spider-bot.git . + git clone https://github.com/introkun/oculus-deals-spider-bot.git . echo "Installing app dependencies" npm ci