Update deployment workflow

This commit is contained in:
Kamran Ahmed committed 2023-09-30 14:25:25 +01:00
1 parent d31d626c61
commit 5d57d5baaf
2 files changed
+9 -5

No files matched your search

+6 -4
View File
@@ -2,8 +2,11 @@
set -e
rm -rf .temp
git clone git@github.com:roadmapsh/web-draw.git .temp/web-draw
# ignore cloning if .temp/web-draw already exists
if [ ! -d ".temp/web-draw" ]; then
mkdir -p .temp
git clone git@github.com:roadmapsh/web-draw.git .temp/web-draw
fi
rm -rf renderer
mkdir renderer
@@ -24,8 +27,7 @@ find renderer -type f \( -name "*.ts" -o -name "*.tsx" \) -print0 | while IFS= r
fi
done
# remove the temporary directory
rm -rf .temp
# ignore the worktree changes for the renderer directory
git update-index --skip-worktree renderer/*