Skip to content

Commit ad87e8a

Browse files
committed
chore(): publish to rubygems with circle ci
1 parent 4fda31a commit ad87e8a

File tree

4 files changed

+35
-2
lines changed

4 files changed

+35
-2
lines changed

.circleci/config.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,20 @@ jobs:
103103
- store_test_results:
104104
path: test_results
105105

106+
deploy:
107+
executor: main-executor
108+
steps:
109+
- setup
110+
- run:
111+
name: Setup rubygems
112+
command: bash .circleci/setup-rubygems.sh
113+
- run:
114+
name: Publish to rubygems
115+
command: |
116+
gem build activeadmin_addons.gemspec
117+
version_tag=$(git describe --tags)
118+
gem push activeadmin_addons-${version_tag#v}.gem
119+
106120
workflows:
107121
version: 2
108122
test_and_lint:
@@ -113,3 +127,10 @@ workflows:
113127
matrix:
114128
parameters:
115129
ruby-version: ["2.5", "2.6", "2.7"]
130+
- deploy:
131+
context: org-global
132+
filters:
133+
tags:
134+
only: /.*/
135+
branches:
136+
ignore: /.*/

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
2525
* Remove unsupported `select2-rails` gem, vendor files directly [#264](https://github.com/platanus/activeadmin_addons/pull/264) and bump select2 to 4.0.13 [#296](https://github.com/platanus/activeadmin_addons/pull/296)
2626
* Updated `require_all` gem to 2.0 [#313](https://github.com/platanus/activeadmin_addons/pull/313)
2727
* Dependabot bumps for devise, rack, loofah
28+
* Release with circle ci instead of travis
2829

2930
### 1.7.1
3031

MIT-LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2014 PLATANUS SPA
1+
Copyright 2021 PLATANUS SPA
22

33
Permission is hereby granted, free of charge, to any person obtaining
44
a copy of this software and associated documentation files (the

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,17 @@ Take care of defining these variables before the import of `@import 'activeadmin
259259

260260
For material documentation you should go to [gem documentation](http://code.viget.com/active_material/docs/api/).
261261

262+
## Publishing
263+
264+
On master/main branch...
265+
266+
1. Change `VERSION` in `lib/activeadmin_addons/version.rb`.
267+
2. Change `Unreleased` title to current version in `CHANGELOG.md`.
268+
3. Run `bundle install`.
269+
4. Commit new release. For example: `Releasing v1.0.0`.
270+
5. Create tag. For example: `git tag v1.0.0`.
271+
6. Push tag. For example: `git push origin v1.0.0`.
272+
262273
## Contributing
263274

264275
1. Fork it
@@ -280,4 +291,4 @@ activeadmin_addons is maintained by [platanus](http://platan.us).
280291

281292
## License
282293

283-
ActiveAdminAddons is © 2016 Platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.
294+
ActiveAdminAddons is © 2021 Platanus, spa. It is free software and may be redistributed under the terms specified in the LICENSE file.

0 commit comments

Comments
 (0)