Skip to content

Commit ef99ad3

Browse files
deploy script updated
1 parent 41c4d50 commit ef99ad3

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

deploy.sh

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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+
git init
13+
git add -A
14+
git commit -m 'deploy'
15+
16+
git push -f git@github.com:thealoneprogrammer/vue-sticky.git master:gh-pages
17+
18+
cd -

vue.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
publicPath: process.env.NODE_ENV === 'production'
3+
? '/vue-sticky/'
4+
: '/'
5+
}

0 commit comments

Comments
 (0)