-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathno.travis.yml
32 lines (32 loc) · 932 Bytes
/
no.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
language: node_js
node_js:
- "10"
branches:
only:
- master
install:
- npm ci
script:
- NODE_ENV=test npm run-script test-travis
after_success:
- |
if ([ "$TRAVIS_BRANCH" == "master" ] || [ ! -z "$TRAVIS_TAG" ]) && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
git config --global user.email "travis@travis-ci.org"
git config --global user.name "Travis CI"
git remote set-url --push origin "https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git"
git remote -v
git checkout -f -b version-branch
npm version patch -m "$(git log -1 --pretty=%B) .... bump version [skip ci]"
git push origin version-branch:master --follow-tags
npm run build
else
echo "version skiped!"
fi
deploy:
- provider: releases
api_key: "$GH_TOKEN"
file:
- "output/hkubectl-linux"
- "output/hkubectl-macos"
- "output/hkubectl-win.exe"
skip_cleanup: true