mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-11 19:53:59 +02:00
Fix failing build
This commit is contained in:
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
@@ -19,7 +19,9 @@ jobs:
|
|||||||
- uses: actions/setup-node@v1
|
- uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 18
|
node-version: 18
|
||||||
- run: git config --global url."https://${{ secrets.PAT }}@github.com/".insteadOf ssh://git@github.com/
|
- name: Prepare Draw Repository
|
||||||
|
run: |
|
||||||
|
git clone https://${{ secrets.PAT }}@github.com/roadmapsh/web-draw.git .temp/web-draw --depth 1
|
||||||
- uses: pnpm/action-setup@v2.2.2
|
- uses: pnpm/action-setup@v2.2.2
|
||||||
with:
|
with:
|
||||||
version: 7.13.4
|
version: 7.13.4
|
||||||
|
@@ -2,8 +2,11 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
rm -rf .temp
|
# ignore cloning if .temp/web-draw already exists
|
||||||
git clone https://"$PAT"@github.com/roadmapsh/web-draw.git .temp/web-draw
|
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
|
rm -rf renderer
|
||||||
mkdir renderer
|
mkdir renderer
|
||||||
@@ -24,8 +27,5 @@ find renderer -type f \( -name "*.ts" -o -name "*.tsx" \) -print0 | while IFS= r
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# remove the temporary directory
|
|
||||||
rm -rf .temp
|
|
||||||
|
|
||||||
# ignore the worktree changes for the renderer directory
|
# ignore the worktree changes for the renderer directory
|
||||||
git update-index --skip-worktree renderer/*
|
git update-index --skip-worktree renderer/*
|
||||||
|
Reference in New Issue
Block a user