Skip to content

Commit

Permalink
Merge pull request #37 from circleci/deploy
Browse files Browse the repository at this point in the history
Automate publishing of tagged releases to Clojars
  • Loading branch information
stig authored Mar 22, 2024
2 parents 867b433 + e0a7852 commit f176c48
Showing 4 changed files with 44 additions and 5 deletions.
20 changes: 19 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -28,10 +28,28 @@ jobs:
- run: lein check
- run: lein test

publish:
<<: *defaults
steps:
- checkout
- run: lein deps
- run: lein deploy

workflows:
version: 2
build_and_test:
test_and_publish:
jobs:
- clj-kondo
- docs
- test
- publish:
context: clojars-publish
requires:
- clj-kondo
- docs
- test
filters:
tags:
only: /.*/
branches:
ignore: /.*/
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Version NEXT
Version 0.10.0 (March 22, 2024)
================================

* [#25](https://github.com/circleci/analytics-clj/pull/25): Update CODEOWNERS with more relevant team
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -10,7 +10,9 @@ For full documentation on the Segment.io 2.x Java client, see [analytics-java](h

## Installation

`[circleci/analytics-clj "0.8.2"]`
`[circleci/analytics-clj "<VERSION>"]`

To find the most recent published version, see https://clojars.org/circleci/analytics-clj

## Usage

@@ -102,6 +104,16 @@ We provided a top level `enqueue` function to allow you to do the following:
(.properties {"company" "Acme Inc."})))
```


## Releasing

New git tags are automatically published to [clojars](https://clojars.org/circleci/bond).

The following should be updated on the main/master branch before tagging:

- `project.clj` - version
- `CHANGELOG.md` - summary of changes

## License

Copyright © 2019 CircleCI
13 changes: 11 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject circleci/analytics-clj "0.8.2"
(defproject circleci/analytics-clj "0.10.0"
:description "Idiomatic Clojure wrapper for the Segment.io 2.x Java client"
:url "https://github.com/circleci/analytics-clj"
:license {:name "Eclipse Public License"
@@ -9,4 +9,13 @@
:profiles {:dev {:dependencies [[bond "0.2.6"]]}}
:plugins [[lein-codox "0.10.8"]]
:codox {:output-path "docs"
:namespaces [circleci.analytics-clj.core]})
:namespaces [circleci.analytics-clj.core]}

:repositories [["releases" {:url "https://clojars.org/repo"
:username :env/clojars_username
:password :env/clojars_token
:sign-releases false}]
["snapshots" {:url "https://clojars.org/repo"
:username :env/clojars_username
:password :env/clojars_token
:sign-releases false}]])

0 comments on commit f176c48

Please sign in to comment.