Skip to content

Commit

Permalink
deploy docs
Browse files Browse the repository at this point in the history
  • Loading branch information
afontainec committed Jul 5, 2020
1 parent b6453a1 commit d30f7af
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ deploy:
edge: true
on:
branch: master
- provider: script
script: sh .travis/docs.sh
on:
branch: master
tags: false
25 changes: 25 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env sh

# abort on errors
set -e

# build
npm run docs:build

# navigate into the build output directory
cd docs/.vuepress/dist

# 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
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master

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

cd -
2 changes: 1 addition & 1 deletion docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
title: 'ApañoTuPyme Manual de Inscripción',
base: '/thewall/',
base: '/<REPO>/',
themeConfig: {
nav: [
{ text: 'ApañoTuPyme', link: 'https://apañotupyme.cl' },
Expand Down

0 comments on commit d30f7af

Please sign in to comment.