Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 78880ae

Browse files
committed
chore(website): comments from 1606
1 parent d8acc55 commit 78880ae

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Diff for: release.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ Say the previous release was 0.0.J, the current release is 0.0.K, and the next r
4242
4343
- NPM publish
4444
45-
- Update the website. `cd website; npm run build`. Then copy the output `build` directory to the gh-pages branch.
45+
- Update the website. `./scripts/generate-docs.sh`. Then switch to the
46+
`gh-pages` branch, edit the commit message with `git commit --amend`,
47+
and push the new website.
4648
4749
- Let people know
4850
- Have @ProtractorTest tweet about it

Diff for: scripts/generate-docs.sh

+5-6
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,11 @@ if [ $(git status --porcelain | wc -l) != "0" ]; then
1313
fi
1414

1515
#Generate files
16-
gulp
16+
npm run build
1717
if [ $? -ne 0 ]; then
1818
echo
1919
echo "-----------------------------------------------------------------------"
20-
echo "Gulp failed. If you got a message that you were missing a required"
21-
echo "package, try running the following in /website/:"
22-
echo
23-
echo "npm install del dgeni-packages dgeni gulp gulp-concat gulp-connect \\"
24-
echo " gulp-less gulp-markdown gulp-minify-css gulp-rename gulp-replace"
20+
echo "Build failed. Try running 'npm install' in /website/."
2521
echo
2622
exit 1
2723
fi
@@ -37,4 +33,7 @@ git reset --hard
3733
cp -r website/build/* .
3834
git add -A
3935
git commit -m "chore(website): automatic docs update"
36+
echo
37+
echo -e "\tCreated update commit in gh-pages branch"
38+
echo
4039
git checkout "${EXEC_BRANCH}"

0 commit comments

Comments
 (0)