-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e008f68
commit e7750d9
Showing
4 changed files
with
45 additions
and
7 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,14 @@ | ||
language: node_js | ||
node_js: | ||
- 5 | ||
cache: | ||
directories: | ||
- node_modules | ||
notifications: | ||
email: false | ||
deploy: | ||
provider: script | ||
script: npm run deploy | ||
skip_cleanup: true | ||
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
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,20 @@ | ||
if (!process.env.GH_TOKEN) throw new Error('no token') | ||
|
||
var url = require('url') | ||
var path = require('path') | ||
|
||
var pkg = require('./package.json') | ||
|
||
var repo = url.parse(pkg.repository.url) | ||
repo.auth = process.env.GH_TOKEN | ||
repo = repo.format() | ||
|
||
require('gh-pages').publish(path.join(__dirname, 'www'), { | ||
repo: repo, | ||
silent: true, | ||
user: { | ||
name: 'Greenkeeper', | ||
email: 'support@greenkeeper.io' | ||
|
||
} | ||
}, console.log) |
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 |
---|---|---|
@@ -1,16 +1,19 @@ | ||
{ | ||
"name": "greenkeeper-website", | ||
"description": "The Greenkeeper Website", | ||
"private": true, | ||
"scripts": { | ||
"start": "harp server ./www", | ||
"build": "harp compile ./app ./www" | ||
"devDependencies": { | ||
"gh-pages": "^0.11.0", | ||
"harp": "^0.20.1" | ||
}, | ||
"private": true, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/christophwitzko/greenkeeper-website.git" | ||
"url": "https://github.com/greenkeeperio/greenkeeper-website.git" | ||
}, | ||
"devDependencies": { | ||
"harp": "^0.20.1" | ||
"scripts": { | ||
"build": "harp compile ./app ./www", | ||
"deploy": "node deploy.js", | ||
"start": "harp server ./www", | ||
"test": "npm run build" | ||
} | ||
} |