summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml23
1 files changed, 22 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index 760e13c..9d1eb9a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,9 @@
sudo: false
+branches:
+ only:
+ - master
+
os:
- linux
- osx
@@ -20,6 +24,7 @@ stages:
- lint
- build
- test
+ - release
before_install:
- if [ $TRAVIS_OS_NAME == "linux" ]; then
@@ -36,4 +41,20 @@ jobs:
- stage: lint
script: tslint -c tslint.json 'src/**/*.ts'
- stage: build
- script: npm run vscode:prepublish \ No newline at end of file
+ script: npm run vscode:prepublish
+ - stage: release
+ script:
+ - npm install vsce
+ - vsce package
+ deploy:
+ - provider: releases
+ api_key: $GITHUB_OAUTH_TOKEN
+ file: "./doxdocgen-$TRAVIS_TAG.vsix"
+ skip_cleanup: true
+ on:
+ tags: true
+ - provider: script
+ script: vsce publish -p $VSMARKETPLACE_ACCESS_TOKEN
+ skip_cleanup: true
+ on:
+ tags: true \ No newline at end of file