Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Commit a88e47d

Browse files
committed
fix(ci): fix deploy-doc.sh bugs
1 parent 84fc489 commit a88e47d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

deploy-doc.sh

+2-3
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ project_name=${PWD##*/}
2525
info "Deloying the documentation to the GH pages from $cwd (project name is $project_name)"
2626

2727
info "Building documentation..."
28-
cd $cwd/demo
2928
npm run demo:build:prod
3029

3130
info "Copying the doc folder to /tmp"
3231
rm -rf /tmp/angular-datatables-demo
33-
cp -r dist /tmp/angular-datatables-demo
32+
cp -r dist/demo /tmp/angular-datatables-demo
3433
cd /tmp/angular-datatables-demo
3534

3635
info "Copying project to /tmp and switch to gh-pages branch"
@@ -42,7 +41,7 @@ git checkout gh-pages
4241
git fetch && git reset --hard origin/gh-pages
4342

4443
info "Remove all files except .git"
45-
rm -rf *
44+
rm -rf * .angular .vscode
4645

4746
info "Copy the doc to the gh-pages branch"
4847
cp -r /tmp/angular-datatables-demo/* /tmp/$project_name

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"demo:test": "ng test",
1111
"demo:test-ci": "ng test --no-watch --no-progress --browsers=ChromeHeadless",
1212
"lib:schematics:build": "rimraf dist/lib/schematics && tsc -p lib/schematics/tsconfig.json && copyfiles lib/schematics/{src/collection.json,src/ng-add/schema.json} dist",
13-
"demo:build:prod": "npm run clean && ng build angular-datatables-demo --configuration production --base-href=/angular-datatables",
13+
"demo:build:prod": "npm run clean && ng build angular-datatables-demo --configuration production --base-href=/angular-datatables/",
1414
"version": "npm run build:lib && git add -A",
1515
"postversion": "git push && git push --tags"
1616
},

0 commit comments

Comments
 (0)