-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
52 lines (48 loc) · 1.81 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: ruby
sudo: required
env:
global:
- secure: ojoixSpcynJiCdew7jvNOfCvEEip9F21QzovapQHgCFdQr+GJX16xPfrad7GrRqrq6o9xuzpQKMudYlAsh7bCauOjK9isE89r1TNz+dre2AonLp3Ble6DkW3eYvhJ9a7p/iRRqV5Ahu28/ivyMZ36vD5I5aHfYUwW7T5lk4p5F2tQDX44bMFGbi3ff3er6yDKvFQBgZMUPoBDLwyePqkXduwo25ncf6x/S0vRmecwx/tJDaY54OPwc8nbMuMF0NOah5q4+pl6oNENjpx9kKsOMJUYhDRvzQuPzo4rmogHoRQNPdBmcy1pjDPVMfAbcYhR08bnKbLgZW9nEE9Ob4CY8mETw8PtPQtURRR3jsYqKS+DUPMLSIMskhf8xlpxnOwVhalyIqChL//M5HmVfUeIxTgnSahge8MeU+uvN2quIOc/iHwdOHtz/KJSQg2jiBAlaKBwpySv4/SQB3M5SyrRrEvXZM95UeEdbogWWPOlD4CGH1Hy8OP2zi403omSP7zddVIihSCqo00nqT8UAb5Yo3FtM6ZISJZ7j0+QbGV0Bsm8KtRw5wNZCCIokVrLorXyUdBgfa3BLnRHgV8vo+JUFJ89nCPAySMgP3EEo66kPTCdZffthn8zM8R5OU+Qc5Za4m67y+/Q+jPXcaIwic0nOunmhTJst7iDpUq14Dzzlw=
jobs:
include:
- stage: "Semantic Release"
name: "Generate a new release and changelogs"
language: node_js
node_js: lts/*
os:
- linux
install:
- npm install
script: skip
deploy:
provider: script
api_key: "$GITHUB_TOKEN"
node_js: lts/*
skip_cleanup: true
script: npx semantic-release
on:
branch: master
- stage: "GitHub Release"
name: "Send the generated files to the new GitHub release"
services:
- docker
env:
- COMPOSE_FILE=docker-compose.yml
script:
- TRAVIS_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
- git shortlog -s | cut -f 2- > book/contributors.txt
- docker-compose run --rm ebook $TRAVIS_TAG
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
file_glob: true
file: book-release/*
skip_cleanup: true
on:
branch: master
# notifications:
# email:
# recipients:
# - my@email.com
# on_success: change
# on_failure: always