Skip to content

Commit 83ddb67

Browse files
committed
ci: build travis config to deploy directly to gh-pages
1 parent a40ff70 commit 83ddb67

File tree

12 files changed

+23
-703
lines changed

12 files changed

+23
-703
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
22
node_modules
33
/dist
4+
/docs
45
/coverage
56

67
# local env files

.releaserc.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

.travis.yml

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,32 @@ node_js:
66
- lts/*
77
- 10
88

9-
install:
10-
- travis_retry npm install
9+
branches:
10+
only:
11+
- master
12+
- next
13+
14+
install: travis_retry npm install
1115

1216
script:
1317
- npm test
1418
- npm run coveralls
1519

16-
stages:
17-
- test
18-
- name: release
19-
if: branch = master
20+
before_deploy: npm run build
21+
22+
deploy:
23+
provider: pages
24+
local_dir: docs
25+
token: $GH_TOKEN
26+
skip_cleanup: true
27+
on:
28+
node_js: lts/*
29+
branch: master
30+
tags: false
2031

2132
jobs:
2233
include:
2334
- stage: release
35+
if: branch = master
2436
node_js: lts/*
25-
script:
26-
- npm run build
27-
- npm run build:docs
28-
- npx semantic-release
37+
script: npx semantic-release

commit-docs-files.sh

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/css/index.09f14efc.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/index.html

Lines changed: 0 additions & 19 deletions
This file was deleted.

docs/ios-switch.css

Lines changed: 0 additions & 56 deletions
This file was deleted.

docs/js/chunk-vendors.f44a7610.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/js/index.400e62af.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)