Skip to content

Commit

Permalink
chore(kotti): script deploy to GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Junyu Pu authored and FlorianWendelborn committed Jan 3, 2019
1 parent ec7762a commit 56b970f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
22 changes: 22 additions & 0 deletions github-deploy.sh
@@ -0,0 +1,22 @@
#!/usr/bin/env sh

# abort on errors
set -e

# build
yarn run build:gh-pages

# navigate into the build output directory
cd gh-pages/

# if you are deploying to a custom domain
# echo 'www.example.com' > CNAME

git init
git add -A
git commit -m 'deploy'

# if you are deploying to https://<USERNAME>.github.io/<REPO>
git push -f git@github.com:3YOURMIND/kotti.git master:gh-pages

cd -
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -123,7 +123,8 @@
"build:style": "yarn gulp build --gulpfile ./build/gulpstyle.js",
"build:doc": "nuxt generate -c build/nuxt.config.js",
"build:gh-pages": "DEPLOY_ENV=GH_PAGES nuxt generate -c build/nuxt.config.js",
"dev:docs": "nuxt -c build/nuxt.config.js"
"dev:docs": "nuxt -c build/nuxt.config.js",
"deploy:docs": ". github-deploy.sh"
},
"style": "/dist/kotti-style/index.min.css",
"version": "0.0.4"
Expand Down
4 changes: 2 additions & 2 deletions www/components/Navbar.vue
Expand Up @@ -2,10 +2,10 @@
<KtNavbar :theme="theme" :menu="globalMenu">
<div slot="navbar-header">
<div class="navbar-logo">
<a href="/">
<nuxt-link to="/">
<img :src="theme.logo.wide" class="navbar-logo-img">
<img :src="theme.logo.wide" class="navbar-logo-img--mobile">
</a>
</nuxt-link>
</div>
</div>
<div slot="navbar-footer">
Expand Down

0 comments on commit 56b970f

Please sign in to comment.