Clojarsサインアップ.
git clone git@github.com:kaosf/clocure.git; cd clocure
gpg --gen-key.名前をkaosfでメールアドレスをka.kaosf-=at=-gmail.comにした.パスフレーズ空にしたんだけどこれまずいのかどうかもよく分からん.
ランダムな値が必要やねんでと言われたのでfind / > /dev/nullしたりブラウザ操作したりした.
gpg --list-keysで表示された93535FB2を使ってgpg --send-keys 93535FB2してgpg --export -a 93535FB2して鍵の内容を出力してコピーしてClojarsのProfleページのPGP public key部分にペースト.Clocureのリポジトリのproject.cljを編集.正直何が必要だったのかよく分からない.lein help gpgの出力を参考にしながらやった.
該当コミット; Modify project.clj for dployment to Clojars · cdbd79d · kaosf/clocure
lein deploy clojarsで以下のエラーが出る.
Could not transfer artifact clocure:clocure:pom.asc:1.0.0 from/to clojars (https://clojars.org/repo/): Access denied to: https://clojars.org/repo/clocure/clocure/1.0.0/clocure-1.0.0.pom.asc, ReasonPhrase: Forbidden.
Failed to deploy artifacts: Could not transfer artifact clocure:clocure:pom:1.0.0 from/to clojars (https://clojars.org/repo/): Access denied to: https://clojars.org/repo/clocure/clocure/1.0.0/clocure-1.0.0.pom, ReasonPhrase: Forbidden.
けどいつの間にかClojarsの画面でPromotion出来るようになってて,Promotionしたら公開成功してた.どういうことなの…