.circleci/config.yml in instana-1.199.6 vs .circleci/config.yml in instana-1.200.0.pre1
- old
+ new
@@ -153,11 +153,23 @@
steps:
- run:
name: Run Tests
command: |
bundle exec rubocop
-
+ publish_gem:
+ steps:
+ - run:
+ name: Setup Access
+ command: |
+ mkdir -p ~/.gem
+ echo -e "---\r\n:rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
+ chmod 0600 /home/circleci/.gem/credentials
+ - run:
+ name: Publish Gem
+ command: |
+ bundle exec rake release[origin]
+
jobs:
test_core:
parameters:
stack:
type: executor
@@ -187,11 +199,25 @@
executor: ruby_27
steps:
- checkout
- setup
- run_rubocop
+ publish:
+ executor: ruby_27
+ steps:
+ - checkout
+ - setup
+ - publish_gem
workflows:
+ publish:
+ jobs:
+ - publish:
+ filters:
+ branches:
+ ignore: /.*/
+ tags:
+ only: /^v.*/
core:
jobs:
- lint
- test_core:
matrix: