forked from nurikk/zigbee2mqtt-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
25 lines (25 loc) · 793 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
language: node_js
os: linux
dist: xenial
node_js:
- "stable"
script:
- npm run build
deploy:
- provider: npm
edge: true # opt in to dpl v2
cleanup: false
email: $NPM_EMAIL
api_token: $NPM_TOKEN
on:
tags: true
- provider: pages
token: $GITHUB_TOKEN
edge: true # opt in to dpl v2
local_dir: dist
strategy: git
on:
tags: false
after_deploy:
- VERSION=$(node -p "require('./package.json').version")
- '[ "${TRAVIS_TAG}" != "" ] && curl -XPOST -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/koenkk/zigbee2mqtt/dispatches --data "{\"event_type\": \"update_frontend\", \"client_payload\": { \"version\": \"$VERSION\"}}"'