From 8ea7d4995dd692d2b909aaee0fdd3e9b0aeca073 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sun, 23 May 2021 11:58:56 +0200 Subject: [PATCH] scripts --- script/release.clj | 22 +++++++++++----------- script/{release => release.old} | 0 2 files changed, 11 insertions(+), 11 deletions(-) rename script/{release => release.old} (100%) diff --git a/script/release.clj b/script/release.clj index 284c8d4..6010e64 100755 --- a/script/release.clj +++ b/script/release.clj @@ -4,19 +4,19 @@ '[babashka.tasks :refer [shell]] '[clojure.string :as str]) -;; (fs/copy "resources/public/index.html" "gh-pages" -;; {:replace-existing true}) -;; (shell "clojure -M:dev -m shadow.cljs.devtools.cli release main") -;; (def index-file (fs/file "gh-pages" "index.html")) -;; (spit index-file (str/replace (slurp index-file) "main.js" "sci_script_tag.js")) -;; (fs/create-dirs (fs/file "gh-pages" "js")) -;; (fs/copy (fs/file "resources" "public" "js" "main.js") -;; (fs/file "gh-pages" "js" "sci_script_tag.js") -;; {:replace-existing true}) +(fs/copy "resources/public/index.html" "gh-pages" + {:replace-existing true}) +(shell "clojure -M:dev -m shadow.cljs.devtools.cli release main") +(def index-file (fs/file "gh-pages" "index.html")) +(spit index-file (str/replace (slurp index-file) "main.js" "sci_script_tag.js")) +(fs/create-dirs (fs/file "gh-pages" "js")) +(fs/copy (fs/file "resources" "public" "js" "main.js") + (fs/file "gh-pages" "js" "sci_script_tag.js") + {:replace-existing true}) (def with-gh-pages (partial shell {:dir "gh-pages"})) -#_(with-gh-pages "git add .") -#_(with-gh-pages "git commit -m 'update build'") +(with-gh-pages "git add .") +(with-gh-pages "git commit -m 'update build'") (with-gh-pages "git push origin gh-pages") nil diff --git a/script/release b/script/release.old similarity index 100% rename from script/release rename to script/release.old