-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeploy.sh
56 lines (48 loc) · 1.23 KB
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
node -v
pnpm -v
echo git branch
git branch
echo git pull
git reset --hard origin/main
git pull
echo pnpm install
pnpm install --no-frozen-lockfile
echo pnpm run build
pnpm build:nodejs
pnpm build:interview
pnpm build:qiankun
pnpm build:algorithm
pnpm build:home
echo pwd
# /home/runner/work/open-course/open-course
pwd
ls
rm -rf dist
echo mkdir dist
mkdir dist
# TODO optimize package dist
echo cp -rf packages/nodejs/docs/.vitepress/dist/* dist
echo cp -rf packages/interview/docs/.vitepress/dist/* dist
echo cp -rf packages/qiankun/docs/.vitepress/dist/* dist
echo cp -rf packages/algorithm/docs/.vitepress/dist/* dist
echo cp -rf packages/home/dist/* dist
cp -rf packages/nodejs/docs/.vitepress/dist/* dist
cp -rf packages/interview/docs/.vitepress/dist/* dist
cp -rf packages/qiankun/docs/.vitepress/dist/* dist
cp -rf packages/algorithm/docs/.vitepress/dist/* dist
cp -rf packages/home/dist/* dist
echo cd dist
cd dist
echo ls
pwd
ls
git init
git branch -m master main
git config --global init.defaultBranch main
git config --global user.email "[email protected]"
git config --global user.name "aaronlamz"
git add .
git commit -m 'deploy site page'
git status
git push -f [email protected]:aaronlamz/open-course.git main:gh-pages