Skip to content

Commit

Permalink
solve bitrot
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Feb 22, 2022
1 parent 4f2448b commit d053a66
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
key: ${{ runner.os }}-clerk-cache

- name: 🏗 Build Clerk Static App with default Notebooks
run: clojure -X:demo nextjournal.clerk/build-static-app! :git/sha '"${{ github.sha }}"' :git/url '"https://github.com/nextjournal/clerk"'
run: bb build:static-app "${{ github.sha }}"

- name: 🔐 Google Auth
uses: google-github-actions/auth@v0
Expand Down
7 changes: 5 additions & 2 deletions bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
:depends [yarn-install]}

build:static-app {:doc "Builds a static app with default notebooks"
:depends [release:js release:css]
:task (clojure "-X:demo nextjournal.clerk/build-static-app!")}
:depends [release:js]
:task (clojure "-X:demo nextjournal.clerk/build-static-app!"
{:git/sha (or (first *command-line-args*)
(u/latest-sha))
:git/url "https://github.com/nextjournal/clerk"})}

test:static-app {:doc "Run UI tests for current SHA. Provide SHA as command line arg."
:task (do
Expand Down
2 changes: 1 addition & 1 deletion src/nextjournal/clerk/config.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
(not= "false" prop)))

(def default-resource-manifest
{"/js/viewer.js" "https://storage.googleapis.com/nextjournal-cas-eu/data/8VwKauX6JACEP3K6ahNmP5p1w7rWdhKzeGXCDrHMnJiVrUxHVxcm3Xj84K2r3fcAKWxMQKzqoFe92osgFEHCuKCtZC"})
{"/js/viewer.js" "https://storage.googleapis.com/nextjournal-cas-eu/data/8Vxcom3udwT7gVgFSWupPQQY7E7ggeRJw2DbMXZzPmqxMJLDyueBUaSGRQcwwULUuWNmSmxjafMN2dWvczHYi3YC4S"})

(def resource-manifest-from-props
(when-let [prop (System/getProperty "clerk.resource_manifest")]
Expand Down

0 comments on commit d053a66

Please sign in to comment.