-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
40 lines (40 loc) · 979 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
language: node_js
node_js:
- 'node'
cache:
directories:
- node_modules
before_script:
- cp $TRAVIS_BUILD_DIR/src/config/config.sample.js $TRAVIS_BUILD_DIR/src/config/config.js
script:
- npm run build
before_deploy:
- npm run zip
- cd $TRAVIS_BUILD_DIR
deploy:
provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
file_glob: true
file: 'subnotifier.zip'
prerelease: false
draft: true
tag_name: $TRAVIS_TAG
target_commitish: $TRAVIS_COMMIT
name: '$TRAVIS_TAG Latest Stable Release'
on:
repo: d0p3t/SubNotifier
branch: master
tags: true
after_success:
- wget https://d0p3t.nl/maildelivery/discord.sh
- chmod +x discord.sh
- './discord.sh success $WEBHOOK_URL'
after_failure:
- wget https://d0p3t.nl/maildelivery/discord.sh
- chmod +x discord.sh
- './discord.sh failure $WEBHOOK_URL'
after_deploy:
- wget https://d0p3t.nl/maildelivery/discord.sh
- chmod +x discord.sh
- './discord.sh deployed $WEBHOOK_URL'