Skip to content

Commit

Permalink
travis: Fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Dec 3, 2020
1 parent 20c659d commit f1e1731
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
14 changes: 8 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,18 @@ script:
- npm run build
- npm run build:examples

before_deploy:
- sed -i '/dist/d' .gitignore
- sed -i '/\/build/d' examples/react-webpack/.gitignore
- sed -i '/\/dist/d' examples/vue-webpack/.gitignore
- rm examples/superhero-utils
- cp -r dist examples/superhero-utils

deploy:
- provider: script
skip_cleanup: true
script: sed -i '/dist/d' .gitignore
on:
branch: master
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
local_dir: .
local_dir: examples
on:
branch: master
8 changes: 4 additions & 4 deletions examples/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<h3>superhero-utils example using plain js</h3>

Other examples:
<a href="/react-unpkg.html">react unpkg</a>,
<a href="/react-webpack/build">react webpack</a>,
<a href="/vue-unpkg.html">vue unpkg</a>,
<a href="/vue-webpack/dist">vue webpack</a>
<a href="./react-unpkg.html">react unpkg</a>,
<a href="./react-webpack/build/">react webpack</a>,
<a href="./vue-unpkg.html">vue unpkg</a>,
<a href="./vue-webpack/dist/">vue webpack</a>

<hr>
<div class="icon">Donate</div>
Expand Down
2 changes: 1 addition & 1 deletion examples/react-webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"react-app/jest"
]
},
"homepage": "/react-webpack/build/",
"homepage": ".",
"browserslist": {
"production": [
">0.2%",
Expand Down
2 changes: 1 addition & 1 deletion examples/react-webpack/src/superhero-utils
2 changes: 1 addition & 1 deletion examples/vue-webpack/vue.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
publicPath: '/vue-webpack/dist/',
publicPath: '.',
};

0 comments on commit f1e1731

Please sign in to comment.