release
This commit is contained in:
parent
5bbd4d199d
commit
7dd4af2ef4
4 changed files with 70 additions and 4 deletions
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
set -eo pipefail
|
||||
|
||||
clojure -A:dev -m shadow.cljs.devtools.cli release main
|
||||
clojure -M:dev -m shadow.cljs.devtools.cli release main
|
||||
cp resources/public/index.html gh-pages
|
||||
cp resources/public/xterm.css gh-pages
|
||||
sed -i 's/main.js/sci_script_tag.js/' gh-pages/index.html
|
||||
|
||||
mkdir -p gh-pages/ui
|
||||
cp resources/public/ui/main.js gh-pages/ui/main.js
|
||||
mkdir -p gh-pages/js
|
||||
cp resources/public/js/main.js gh-pages/js/sci_script_tag.js
|
||||
|
||||
cd gh-pages
|
||||
git add .
|
||||
|
|
|
|||
22
script/release.clj
Executable file
22
script/release.clj
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env bb
|
||||
|
||||
(require '[babashka.fs :as fs]
|
||||
'[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})
|
||||
|
||||
(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 push origin gh-pages")
|
||||
|
||||
nil
|
||||
Loading…
Add table
Add a link
Reference in a new issue