Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy to now #89

Merged
merged 3 commits into from
Sep 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
language: node_js
node_js:
- node

deploy:
script: scripts/deploy.sh
provider: script
skip_cleanup: true
on:
branch: master
11 changes: 10 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,14 @@
"keywords": [
"node",
"server"
]
],
"now": {
"alias": "first-timers-bot",
"env": {
"APP_ID": "@app-id",
"NODE_ENV": "production",
"PRIVATE_KEY": "@private-key",
"WEBHOOK_SECRET": "@webhook-secret"
}
}
}
8 changes: 8 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

# https://github.com/zeit/now-cli/issues/817
now="npx [email protected] --token=$NOW_TOKEN"

$now --public
$now alias
$now rm --safe --yes wip-bot