Auto deploy fix?

This commit is contained in:
Zakary Timson 2018-06-26 14:55:36 -04:00
parent 6bd1a996ae
commit 057acbd569
2 changed files with 7 additions and 3 deletions

View File

@ -27,6 +27,12 @@ jobs:
name: Build
command: yarn build-datatable
- run:
name: Copy README and LICENSE
command: |
cp LICENSE dist/ng-datatable/
cp README.md dist/ng-datatable/
- store_artifacts:
path: dist/ng-datatable
@ -34,9 +40,6 @@ jobs:
command: |
echo "${CIRCLE_BRANCH}"
if [ "${CIRCLE_BRANCH}" == "production" ]; then
cp README.md dist/ng-datatable/
cp LICENSE dist/ng-datatable/
cd dist/ng-datatable
yarn ci-publish
else
echo "Only the production branch is published"

View File

@ -6,6 +6,7 @@
"start": "ng serve",
"build": "ng build",
"build-datatable": "ng build ng-datatable --prod",
"ci-publish": "cd dist/ng-datatable && ci-publish",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"