Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore: enable tag builds of releases #45

Merged
merged 1 commit into from
Dec 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
- env: T="electron" S="openwhisk2" NEEDS_SECOND_OPENWHISK_AUTH=true NEEDS_OPENWHISK_API_GATEWAY=true NEEDS_OPENWHISK_JAVA8=true
- env: T="electron" S="openwhisk4" NEEDS_OPENWHISK_NODEJS8=true

# the above are test stages; next is the release stage, performed for tag builds
# see ./package.json for the release-it build definition
- stage: release
script: npm install -g release-it@12.4.3 && release-it
if: tag =~ /^v([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3})$/

env:
global:
- WEBPACK_CLIENT_URL='http://localhost:9080'
Expand Down
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,28 @@
"eslint --fix",
"git add"
]
},
"release-it": {
"git": {
"commit": false,
"tag": false,
"push": false,
"requireUpstream": false
},
"npm": {
"publish": false
},
"github": {
"release": true,
"releaseNotes": "git log --pretty=format:\"* %s (%h)\" v${latestVersion}...HEAD",
"assets": [
"./dist/electron/Oui-darwin-x64.tar.bz2",
"./dist/electron/Oui-linux-x64.zip",
"./dist/electron/Oui-win32-x64.zip"
]
},
"hooks": {
"before:init": "if [ \"$TRAVIS_OS_NAME\" = \"linux\" ]; then sudo apt-get update && sudo apt-get install wine; fi; npm run build:electron:all"
}
}
}