-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
36 lines (36 loc) · 1.44 KB
/
.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
os: linux
language: node_js
node_js:
- "12"
install:
- npm install
- npm i -D markdown-it
before_script:
# get release info
export RELEASE_NAME=$TRAVIS_TAG
export RELEASE_NOTE=$(node build/deploy/change-log.js --path=docs/docs/changelog.md --version=$RELEASE_NAME)
script:
# build resource code
- sh build/deploy/script.sh
after_success:
- echo $(node build/deploy/check-deploy.js)
before_deploy:
# init file before deploy
- sh build/deploy/before-deploy.sh
deploy:
provider: releases
# ⋮
edge: true
cleanup: false
overwrite: true
api_key:
secure: N6S2rNITmL0nYySaKrZaQsbGfBd2TcLv1nbfEMeO1IMrcgx+1k+YgJQbkbxIk/WHtiLaXfuUsViCAwLVIvbt0YW3ryq1Mjw7ntTnYidwAN45TD0+6YHPoUpvvwC/5a2CnOBFE0LaEILFba47gVcXFy+TewSmU1u7ZwEimK0fFHhcn6Pa6XSTqv4qnvlR6JsYZRK+cbluPKEZOfuVeI6/ubL3JS/TxakLDoC1+vQ+7PQqKG5RH2/xnBcIGMeKTu6SlCN/Q9UpkHVqRFUHVlrDycc25uPr5IeOpFBn5AZvb+C2+laKk1JgM56Sr9Z4XYQXcFN/xXGFwyI+PiXQ8GkIdzHoIw+upwtLPe5pcPMNqdbsaYgBMBdcLaz66ZGVXtPWTXslFqmvqZPK2sJ4WKair4j6CvMSmE/fj6bBA5eVfUvkxWHI0n5pUnduY1e7atLFzO15Ks6+uLCf0nOcv4WhV660ZmZWKsg2jlLFYPfAYt9MGtzyrsfXJB/cI/p12xS+/lXqOgkAwJlON7pMoC0sZ0cKPrsmwWg7AnxlhHEb59V1cigiVNBoWBglVKiOcjnjIf1P240Lu2YIEr3N9TqP0hpGKSKoK1UfjIczsFGTcHoeMnobPepPBjAipUFoxxVgsjXmwhdY+RNAzLmn94rF0RmobD/DYZbIcW3k1PnGAOs=
name: $RELEASE_NAME
release_notes: $RELEASE_NOTE
file_glob: true
file: ./*.zip
draft: false
prerelease: false
on:
tags: true
condition: $(node build/deploy/check-deploy.js) = true