Skip to content

Commit

Permalink
Added circleci deployment to publish a new version
Browse files Browse the repository at this point in the history
  • Loading branch information
fragsalat committed May 30, 2017
1 parent 5127717 commit dca5356
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ checkout:
- git config --global user.name "${CIRCLE_PROJECT_USERNAME}"

dependencies:
pre:
- sudo apt-get update; sudo apt-get install jq
override:
- npm install -g gulp-cli aurelia-cli
- npm install
Expand All @@ -37,6 +39,15 @@ test:
- gulp lint

deployment:
patch:
branch: [master, release, test-base]
commands:
- gulp bump-version changelog
- git add package.json doc/CHANGELOG.md
- git commit -m "Bumped version to $(jq -r .version package.json)"
- git tag -a $(jq -r .version package.json) -m "Automatic release via CircleCI"
- git push origin $CIRCLE_BRANCH
- git push origin $(jq -r .version package.json)
master:
branch: /.*/
commands:
Expand Down

0 comments on commit dca5356

Please sign in to comment.