From 6da99ffc90b491f2fc691d6c8c59c7ed73ce4c0a Mon Sep 17 00:00:00 2001 From: Chris McCormick Date: Fri, 15 Nov 2024 11:24:56 +0000 Subject: [PATCH] Fix #55: create gh-pages dir before copying. (#91) * Fix #55: create gh-pages dir before copying. * Update changelog. --- CHANGELOG.md | 1 + script/release.clj | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f50c87..58a76c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ +- [#55](https://github.com/babashka/babashka/issues/55): create gh-pages dir before using. - [#89](https://github.com/babashka/babashka/issues/89): allow `evaluate_script_tags` to specify individual scripts. - [#87](https://github.com/babashka/scittle/issues/87): prod build on fresh checkout fails diff --git a/script/release.clj b/script/release.clj index 5293fa9..3a1591b 100755 --- a/script/release.clj +++ b/script/release.clj @@ -3,6 +3,8 @@ (require '[babashka.fs :as fs] '[babashka.tasks :refer [shell]]) +(fs/create-dirs "gh-pages") + (fs/copy "resources/public/index.html" "gh-pages" {:replace-existing true})