Skip to content

Commit 190b57c

Browse files
zvonimirfrasGitHub Enterprise
authored andcommitted
Merge pull request #9 from callums/master
Update deploy.sh to push to gh-pages
2 parents c9b757b + 89403cc commit 190b57c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"repository": {
4848
"type": "git",
49-
"url": "git@github.ibm.com:peretz/carbon-components-angular.git"
49+
"url": "[email protected]:ibm/carbon-components-angular.git"
5050
},
5151
"license": "Apache-2",
5252
"author": "IBM",

scripts/deploy.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,19 @@ if [[ ${TRAVIS_TEST_RESULT=0} == 1 ]]; then
88
fi
99

1010
npm run semantic-release
11+
12+
# deploy to gh pages
13+
if [[ $TRAVIS_BRANCH == "master" ]]; then
14+
mkdir pages
15+
cp -R dist/docs/documentation pages/
16+
cp -R dist/docs/storybook/* pages
17+
18+
git config user.name "Carbon Deploy"
19+
20+
cd pages
21+
git init
22+
git add .
23+
git commit -m "Deploy to GitHub Pages"
24+
git push --force "[email protected]:ibm/carbon-components-angular.git" master:gh-pages > /dev/null 2>&1
25+
exit 0;
26+
fi

0 commit comments

Comments
 (0)