This repository has been archived by the owner on Feb 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from 1debit/dx-383
changing old publish method to new one
- Loading branch information
Showing
4 changed files
with
26 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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-.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters