Skip to content

Commit 0005aaa

Browse files
author
ryan.deng
committed
updated
1 parent 0227b71 commit 0005aaa

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

.travis.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: node_js
2+
node_js:
3+
- "node"
4+
5+
cache: npm
6+
7+
script: npm run build
8+
9+
deploy:
10+
provider: pages
11+
skip_cleanup: true
12+
github_token: $GITHUB_TOKEN
13+
local_dir: dist
14+
on:
15+
branch: master

deploy.sh

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/usr/bin/env sh
2+
3+
# abort on errors
4+
set -e
5+
6+
# build
7+
npm run build
8+
9+
# navigate into the build output directory
10+
cd dist
11+
12+
# if you are deploying to a custom domain
13+
# echo 'www.example.com' > CNAME
14+
15+
git init
16+
git add -A
17+
git commit -m 'deploy'
18+
19+
# if you are deploying to https://<USERNAME>.github.io
20+
git push -f [email protected]:ryandadeng/ryandadeng.github.io.git master
21+
22+
# if you are deploying to https://<USERNAME>.github.io/<REPO>
23+
# git push -f [email protected]:<USERNAME>/<REPO>.git master:gh-pages
24+
25+
cd -

vue.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
publicPath: '/'
3+
};

0 commit comments

Comments
 (0)