Skip to content

Commit 89a571f

Browse files
author
servrox
committed
Auto deployment to github pages 🔥
1 parent 044e5ff commit 89a571f

3 files changed

Lines changed: 170 additions & 6 deletions

File tree

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ branches:
1010
install:
1111
- npm install
1212
- npm install -g ionic
13-
- npm install -g firebase-tools
1413

1514
script:
1615
- ionic build --prod
1716

1817
after_script:
19-
- firebase deploy --token $FIREBASE_TOKEN
18+
- npm run gh-pages

package-lock.json

Lines changed: 166 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"build": "ng build",
1010
"test": "ng test",
1111
"lint": "ng lint",
12-
"e2e": "ng e2e"
12+
"e2e": "ng e2e",
13+
"gh-pages": "ionic build --prod -- --base-href https://servrox.github.io/ionic4-device-motion/ && npx angular-cli-ghpages --branch=gh-pages --dir=www"
1314
},
1415
"private": true,
1516
"dependencies": {
@@ -45,6 +46,7 @@
4546
"@types/jasminewd2": "~2.0.3",
4647
"@types/node": "~10.14.2",
4748
"@types/w3c-generic-sensor": "^1.0.2",
49+
"angular-cli-ghpages": "^0.5.3",
4850
"codelyzer": "~4.5.0",
4951
"jasmine-core": "~2.99.1",
5052
"jasmine-spec-reporter": "~4.2.1",

0 commit comments

Comments
 (0)