Skip to content

Commit

Permalink
Add automatic deployment to GH pages I guess
Browse files Browse the repository at this point in the history
  • Loading branch information
DaneEveritt committed Jul 28, 2018
1 parent a77d4ef commit 6588004
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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 changes: 13 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -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 [email protected]:pterodactyl/documentation.git master:gh-pages

cd -

0 comments on commit 6588004

Please sign in to comment.