Add this server in ~/.m2/settings.xml
:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>org.github.piotr-yuxuan</id>
<username>${env.GH_PACKAGES_USR}</username>
<password>${env.GH_PACKAGES_PSW}</password>
</server>
</servers>
</settings>
Install Clojure CLI tools (guide).
clj -Sdeps '{:deps {org.piotr-yuxuan/secret-weapon {:mvn/version "0.0.0"}}, :mvn/repos, {"org.github.piotr-yuxuan" {:url "https://maven.pkg.github.com/piotr-yuxuan/secret-weapon"}}}' \
-m org.piotr-yuxuan.secret-weapon.main -- \
--help
See https://clojure.org/reference/deps_and_cli#_maven_authenticated_repos