Skip to content

Commit

Permalink
overwrite .next folder
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Apr 22, 2024
1 parent 7b4eeb2 commit 73f696c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,18 +80,18 @@ jobs:
echo "Waiting for .next directory to be copied..."
sleep 5
done
echo "Checking if ${env.LIVE_DIR_PATH} exists..."
if [ -d "${env.LIVE_DIR_PATH}" ]; then
echo "${env.LIVE_DIR_PATH} exists."
echo "Checking if ${{env.LIVE_DIR_PATH}} exists..."
if [ -d "${{env.LIVE_DIR_PATH}}" ]; then
echo "${{env.LIVE_DIR_PATH}} exists."
else
echo "${env.LIVE_DIR_PATH} does not exist."
echo "${{env.LIVE_DIR_PATH}} does not exist."
fi
echo "Checking if ${env.LIVE_DIR_PATH}/.next exists..."
if [ -d "${env.LIVE_DIR_PATH}/.next" ]; then
echo "${env.LIVE_DIR_PATH}/.next exists."
echo "Checking if ${{env.LIVE_DIR_PATH}}/.next exists..."
if [ -d "${{env.LIVE_DIR_PATH}}/.next" ]; then
echo "${{env.LIVE_DIR_PATH}}/.next exists."
else
echo "${env.LIVE_DIR_PATH}/.next does not exist."
echo "${{env.LIVE_DIR_PATH}}/.next does not exist."
fi
mv ${{ env.STAGING_DIR_PATH }}/.next ${{ env.LIVE_DIR_PATH }}/.next
echo "Restarting application..." | tee -a /var/log/prototypr/deploy.log
Expand Down

0 comments on commit 73f696c

Please sign in to comment.