diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..c274c05d --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 00000000..950194a2 --- /dev/null +++ b/deploy.sh @@ -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 -