forked from pterodactyl/documentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automatic deployment to GH pages I guess
- Loading branch information
1 parent
a77d4ef
commit 6588004
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 - |