Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #16 from 1debit/dx-383
Browse files Browse the repository at this point in the history
changing old publish method to new one
  • Loading branch information
mtabui authored May 11, 2021
2 parents 5188cb1 + ff62cdb commit 3b0f0c2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 49 deletions.
36 changes: 10 additions & 26 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,40 +13,24 @@ jobs:
steps:
- cit/bundler-preamble
- run: bundle exec rake test
tag:
<<: *defaults
steps:
- checkout
- cit/install-ghr
- run:
name: Package
command: gem build sidekiq-cron-web-admin.gemspec
- run:
name: "Tag & Publish"
command: |
PACKAGE=$(ls *.gem)
VERSION=$(echo $PACKAGE | sed "s/.*-\(.*\)\.gem/\1/")
if [ $(git tag -l $VERSION) ]; then echo "Pre-existing Tag $VERSION"; exit 1; fi
git config --global user.email "[email protected]"
git config --global user.name "Chime Bot"
git tag -a $VERSION -m "Version $VERSION"
git push https://${GITHUB_TOKEN}@github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git $VERSION
ghr -soft -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${VERSION} ${PACKAGE}
curl -F package=@${PACKAGE} https://${GEMFURY_TOKEN}@push.fury.io/chime/

workflows:
version: 2
build_test_publish:
jobs:
- test
- tag:
context: ruby-build
- test:
filters:
tags:
only:
- /^pre-.*/
- cit/gem-publish:
context: gem-publish
requires:
- test
filters:
branches:
only:
- master
tags:
only:
- /^pre-.*/
30 changes: 15 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
PATH
remote: .
specs:
sidekiq-cron-web-admin (0.2.2)
sidekiq-cron-web-admin (0.2.7)
sidekiq-cron (= 1.1.0)

GEM
remote: https://gem-proxy.chime.com/
specs:
concurrent-ruby (1.1.5)
connection_pool (2.2.2)
et-orbi (1.2.2)
concurrent-ruby (1.1.8)
connection_pool (2.2.5)
et-orbi (1.2.4)
tzinfo
fugit (1.3.3)
fugit (1.4.5)
et-orbi (~> 1.1, >= 1.1.8)
raabro (~> 1.1)
raabro (~> 1.4)
metaclass (0.0.4)
minitest (5.12.2)
mocha (1.9.0)
metaclass (~> 0.0.1)
power_assert (1.1.5)
raabro (1.1.6)
raabro (1.4.0)
rack (2.0.7)
rack-protection (2.0.7)
rack-protection (2.1.0)
rack
rack-test (1.1.0)
rack (>= 1.0, < 3)
Expand All @@ -30,17 +30,17 @@ GEM
redis-namespace (1.6.0)
redis (>= 3.0.4)
shoulda-context (1.2.2)
sidekiq (5.2.7)
connection_pool (~> 2.2, >= 2.2.2)
rack (>= 1.5.0)
rack-protection (>= 1.5.0)
redis (>= 3.3.5, < 5)
sidekiq (6.0.7)
connection_pool (>= 2.2.2)
rack (~> 2.0)
rack-protection (>= 2.0.0)
redis (>= 4.1.0)
sidekiq-cron (1.1.0)
fugit (~> 1.1)
sidekiq (>= 4.2.1)
test-unit (3.3.4)
power_assert
tzinfo (2.0.0)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)

PLATFORMS
Expand All @@ -59,4 +59,4 @@ DEPENDENCIES
test-unit

BUNDLED WITH
1.17.1
1.17.3
2 changes: 1 addition & 1 deletion lib/sidekiq/cron/web/admin/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module Sidekiq
module Cron
module Web
module Admin
VERSION = '0.2.6'.freeze
VERSION = '0.2.7'.freeze
end
end
end
Expand Down
7 changes: 0 additions & 7 deletions sidekiq-cron-web-admin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ Gem::Specification.new do |spec|
spec.homepage = 'https://github.com/1debit/sidekiq-cron-web-admin'
spec.license = 'MIT'

if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = "https://gemfury.com'"
else
raise 'RubyGems 2.0 or newer is required to protect against ' \
'public gem pushes.'
end

spec.files = Dir.chdir(File.expand_path(__dir__)) do
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
end
Expand Down

0 comments on commit 3b0f0c2

Please sign in to comment.