Skip to content

Commit

Permalink
Implemented a release process
Browse files Browse the repository at this point in the history
  • Loading branch information
atdixon committed Dec 22, 2022
1 parent ce87805 commit 5447b70
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ conf/nip11.json
conf/logback.xml
```

Unpack on server, update config files to your personal liking,
and run (using java 11+):
Unpack on server, update config files to your personal liking (note: leave
the "supported_nips" and "version" as-is in the nip11.json file), and run
(using java 11+):

```
$ java -Xms1g -Xmx1g \
Expand Down
2 changes: 1 addition & 1 deletion conf/nip11.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "If I had more time, I would have written a shorter letter.",
"pubkey": "<your-pubkey-here>",
"contact": "<your-contact-here>",
"supported_nips": ${runtime.nips},
"supported_nips": "${runtime.nips}",
"software": "https://github.com/atdixon/me.untethr.nostr-relay",
"version": "${runtime.version}"
}
5 changes: 4 additions & 1 deletion src/me/untethr/nostr/app.clj
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,10 @@
"Access-Control-Allow-Origin" "*"}
:body (-> nip11-json
(str/replace "${runtime.version}" version/version)
(str/replace "${runtime.nips}"
;; note: we replace the whole string including the runtime.nips
;; variable with a json array -- this is b/c we require the file,
;; even with variables, to be json-parseable
(str/replace "\"${runtime.nips}\""
(write-str* [1, 2, 4, 11, 12, 15, 16, 20])))})

(def ^:private nostr-url "https://github.com/nostr-protocol/nostr")
Expand Down
4 changes: 2 additions & 2 deletions src/me/untethr/nostr/version.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns me.untethr.nostr.version)

;; note: this value is swapped during release so don't change it w/o changing
;; release script - should be "SNAPSHOT" whenever checked-in
(def version "SNAPSHOT")
;; release script - should be "0.0.0-release-test" whenever checked-in
(def version "0.0.0-release-test")

0 comments on commit 5447b70

Please sign in to comment.