Skip to content

Commit

Permalink
fix(ci): fix deploy-doc.sh bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
shanmukhateja committed Apr 21, 2024
1 parent 84fc489 commit a88e47d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions deploy-doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,11 @@ project_name=${PWD##*/}
info "Deloying the documentation to the GH pages from $cwd (project name is $project_name)"

info "Building documentation..."
cd $cwd/demo
npm run demo:build:prod

info "Copying the doc folder to /tmp"
rm -rf /tmp/angular-datatables-demo
cp -r dist /tmp/angular-datatables-demo
cp -r dist/demo /tmp/angular-datatables-demo
cd /tmp/angular-datatables-demo

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

info "Remove all files except .git"
rm -rf *
rm -rf * .angular .vscode

info "Copy the doc to the gh-pages branch"
cp -r /tmp/angular-datatables-demo/* /tmp/$project_name
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"demo:test": "ng test",
"demo:test-ci": "ng test --no-watch --no-progress --browsers=ChromeHeadless",
"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",
"demo:build:prod": "npm run clean && ng build angular-datatables-demo --configuration production --base-href=/angular-datatables",
"demo:build:prod": "npm run clean && ng build angular-datatables-demo --configuration production --base-href=/angular-datatables/",
"version": "npm run build:lib && git add -A",
"postversion": "git push && git push --tags"
},
Expand Down

0 comments on commit a88e47d

Please sign in to comment.