Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 18 additions & 0 deletions
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

Lines changed: 5 additions & 0 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /