Add automatic deployment to GH pages I guess

This commit is contained in:
Dane Everitt 2018-07-28 12:44:40 -07:00
parent a77d4ef96f
commit 65880046ec
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 37 additions and 0 deletions

24
.travis.yml Normal file
View File

@ -0,0 +1,24 @@
langauge: node_js
node_js:
- "10"
cache:
yarn: true
directories:
- "node_modules"
branches:
only:
- "master"
install:
- "yarn install"
- "yarn run build"
script:
- "echo \"No tests\""
deploy:
provider: pages
skip_cleanup: true
github-token: $GITHUB_ACCESS_TOKEN
target-branch: "gh-pages"
local-dir: ".vuepress/dist"
on:
branch: master

13
deploy.sh Normal file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env sh
set -e
yarn run build
cd .vuepress/dist
git init
git add -A
git commit -m 'deploy'
git push -f git@github.com:pterodactyl/documentation.git master:gh-pages
cd -