-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (43 loc) · 1.13 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
language: node_js
node_js: 12
env:
global:
- PACK_NAME=adisakshya-extension-pack
- VERSION=$(node assets/version.js -p)
jobs:
include:
- stage: build
name: "Build and Test"
install:
# Install VSCE
- npm install --global vsce
script:
# Lists all the files that will be published
- npm run ls
# Pack extensions
- npm run pack
workspaces:
create:
name: ws1
paths:
- /home/travis/build/adisakshya/extension-pack/${PACK_NAME}.vsix
- stage: GitHub Release
name: "Publish VSIX file on GitHub Release"
workspaces:
use: ws1
install: skip
script:
# Create release notes
- sed -i 's/TAG/'"${TRAVIS_TAG}"'/g' release-notes/template.md
deploy:
provider: releases
api_key: ${GITHUB_SECURE_TOKEN}
edge: true
name: ${VERSION}
file: /home/travis/build/adisakshya/extension-pack/${PACK_NAME}.vsix
release_notes_file: release-notes/template.md
skip_cleanup: true
on:
tags: true
notifications:
email: false