Skip to content

Commit 550dbf1

Browse files
committed
Update justfile to inform cljdoc about new releases
1 parent ca3c0a4 commit 550dbf1

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

justfile

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
default:
22
@just --list
33

4+
today := `date +%F`
5+
current_version := `cat resources/SPLINT_VERSION | xargs`
6+
project := 'io.github.noahtheduke/splint'
7+
48
flow-storm:
59
clojure -Sforce -Sdeps '{:deps {com.github.jpmonettas/flow-storm-dbg {:mvn/version "RELEASE"}}}' -X flow-storm.debugger.main/start-debugger :port 31401 :debugger-host '"host.docker.internal"' :styles '"/home/noah/.config/flow-storm/big-fonts.css"'
610

@@ -52,9 +56,6 @@ test-all *args="--output dots":
5256
clojure -M:gen-docs
5357
bb scripts/gen_toc.clj
5458

55-
today := `date +%F`
56-
current_version := `cat resources/SPLINT_VERSION | xargs`
57-
5859
@version:
5960
echo '{{current_version}}'
6061

@@ -70,6 +71,12 @@ current_version := `cat resources/SPLINT_VERSION | xargs`
7071
@clojars:
7172
env CLOJARS_USERNAME='noahtheduke' CLOJARS_PASSWORD=`cat ../clojars.txt` clojure -T:build deploy
7273

74+
inform-cljdoc version=current_version:
75+
curl -X POST \
76+
-d project={{project}} \
77+
-d version={{version}} \
78+
https://cljdoc.org/api/request-build2
79+
7380
# Builds the uberjar, builds the jar, sends the jar to clojars
7481
@release version:
7582
echo 'Running tests'
@@ -88,19 +95,22 @@ current_version := `cat resources/SPLINT_VERSION | xargs`
8895
clojure -T:build uber
8996
echo 'Deploying to clojars'
9097
just clojars
98+
echo 'Informing cljdoc'
99+
just inform-cljdoc {{version}}
100+
echo "Don't forget to cut a release on Github!"
91101

92102
install:
93103
clojure -T:build jar
94104
clojure -T:build install
95105

96-
cljdoc:
106+
run-cljdoc:
97107
docker run --rm \
98108
--volume $(pwd):{{invocation_directory_native()}} \
99109
--volume "$HOME/.m2:/root/.m2" \
100110
--volume /tmp/cljdoc:/app/data \
101111
--entrypoint clojure \
102112
cljdoc/cljdoc -Sforce -M:cli ingest \
103-
--project io.github.noahtheduke/splint \
113+
--project {{project}} \
104114
--version {{current_version}} \
105115
--git {{invocation_directory_native()}} \
106116
--rev $(git rev-parse HEAD)

0 commit comments

Comments
 (0)