Skip to content

Commit 7930b3b

Browse files
authored
Last batch of deploy tweaks/fixes (#362)
* Fix typo in deploy setup * Add an assert * Also lint deploy script * Fail more informatively * Dissoc CLASSPATH * Add changelog entry
1 parent 20c939f commit 7930b3b

File tree

4 files changed

+21
-10
lines changed

4 files changed

+21
-10
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jobs:
143143
- run:
144144
name: Deploy
145145
command: |
146-
lein with-profile -user,+deploy run -m deploy-relase make deploy
146+
lein with-profile -user,+deploy run -m deploy-release make deploy
147147
148148
test_code:
149149
description: |

.circleci/deploy/deploy_release.clj

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,22 @@
1616
(defn -main [& _]
1717
(let [tag (System/getenv "CIRCLE_TAG")]
1818
(if-not tag
19-
(System/exit 1)
19+
(do
20+
(println "No CIRCLE_TAG found.")
21+
(System/exit 1))
2022
(if-not (re-find (re-pattern release-marker) tag)
21-
(System/exit 1)
22-
(let [version (make-version tag)]
23-
(spit (io/file "resources" "refactor_nrepl" "version.edn")
24-
(pr-str version))
23+
(do
24+
(println (format "The `%s` marker was not found in %s." release-marker tag))
25+
(System/exit 1))
26+
(let [version (make-version tag)
27+
version-file (io/file "resources" "refactor_nrepl" "version.edn")]
28+
(assert (.exists version-file))
29+
(spit version-file (pr-str version))
2530
(apply println "Executing" *command-line-args*)
26-
(->> [:env (assoc (into {} (System/getenv))
27-
"PROJECT_VERSION" (make-version tag))]
31+
(->> [:env (-> {}
32+
(into (System/getenv))
33+
(assoc "PROJECT_VERSION" (make-version tag))
34+
(dissoc "CLASSPATH"))]
2835
(into (vec *command-line-args*))
2936
(apply sh)
3037
log-result

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
## Unreleased
44

5-
## 3.2.1 (2022-01-21)
5+
## 3.2.2 (2022-01-29)
6+
7+
* Fix a minor artifact in the previous release (the version would be reported as 0.0.0).
8+
9+
## 3.2.1 (2022-01-29)
610

711
* Upgrade Orchard.
812

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ cljfmt-fix:
2525
lein with-profile -user,+$(VERSION),+cljfmt cljfmt fix
2626

2727
eastwood:
28-
lein with-profile -user,+$(VERSION),+eastwood eastwood
28+
lein with-profile -user,+$(VERSION),+deploy,+eastwood eastwood
2929

3030
kondo:
3131
lein with-profile -dev,+$(VERSION),+clj-kondo run -m clj-kondo.main --lint src test

0 commit comments

Comments
 (0)