Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Feb 1, 2021. It is now read-only.

Commit 6fda221

Browse files
committed
feat: add support for now
Closes #15
1 parent bffbbde commit 6fda221

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

packages/core/src/services/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import * as drone from './drone'
88
import * as gitlab from './gitlab'
99
import * as heroku from './heroku'
1010
import * as jenkins from './jenkins'
11+
import * as now from './now'
1112
import * as netlify from './netlify'
1213
import * as semaphore from './semaphore'
1314
import * as shippable from './shippable'
@@ -18,6 +19,7 @@ import * as wercker from './wercker'
1819

1920
export default [
2021
netlify,
22+
now,
2123
circle,
2224
heroku,
2325
appveyor,

packages/core/src/services/now.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
export function detect() {
2+
return !!process.env.NOW_GITHUB_DEPLOYMENT
3+
}
4+
5+
export function config() {
6+
return {
7+
name: 'Now',
8+
service: 'now',
9+
commit: process.env.NOW_GITHUB_COMMIT_SHA,
10+
branch: process.env.NOW_GITHUB_COMMIT_REF,
11+
}
12+
}

0 commit comments

Comments
 (0)