1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-21 00:21:35 +02:00

Update deployment workflow

This commit is contained in:
Kamran Ahmed
2023-09-30 14:23:00 +01:00
parent 71bf34e683
commit d31d626c61
2 changed files with 6 additions and 9 deletions

View File

@@ -2,11 +2,8 @@
set -e
# 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 .temp
git clone git@github.com:roadmapsh/web-draw.git .temp/web-draw
rm -rf renderer
mkdir renderer
@@ -27,5 +24,8 @@ 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/*