Skip to content

Commit 613d0e7

Browse files
committed
Deploy clay+clerk
1 parent 8c8a9c7 commit 613d0e7

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

.github/workflows/deploy-notebooks.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Bygg og deploy dev
1+
name: Bygg og deploy pages
22

33
on:
44
push:
@@ -25,7 +25,12 @@ jobs:
2525
- name: Build notebooks
2626
env:
2727
INPUT_SALT: ${{ secrets.INPUT_SALT }}
28-
run: clojure -X:buildnotebooks
28+
run: make build-clerk
29+
30+
- name: Build clay
31+
env:
32+
INPUT_SALT: ${{ secrets.INPUT_SALT }}
33+
run: make build-clay
2934

3035
# Optional step:
3136
- name: Cache clojure dependencies

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ default: build
44
help: # Show help for each of the Makefile recipes.
55
@grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | sort | while read -r l; do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done
66

7-
.PHONY: build-notebook
8-
build-notebook: # Build jar-file
9-
clj -X:buildnotebooks
7+
.PHONY: build-clerk
8+
build-clerk: # Build clerk notebook
9+
clj -X:buildclerk
1010

1111
.PHONY: build-clay
12-
build-clay: # Build jar-file
12+
build-clay: # Build clay notebook
1313
clj -X:buildclay
1414

1515
.PHONY: deps-list

deps.edn

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
:update {:deps {com.github.liquidz/antq {:mvn/version "RELEASE"}}
4040
:main-opts ["-m" "antq.core" "--check-clojure-tools" "true" "--upgrade" "true"]}
4141

42-
:buildnotebooks {:exec-fn clerk/build-notebooks!}
42+
:buildclerk {:exec-fn clerk/build-notebooks!}
4343
:buildclay {:exec-fn clay/build-notebooks!}
4444
:test ;; added by neil
4545
{:extra-paths ["test"]

src/clay.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
(mapv str (filter File/.isFile (tree-seq File/.isDirectory File/.listFiles (File. "notebooks"))))
1212
"src/index.clj")
1313
:title "Advent of Code"
14-
:base-target-path "_clay"
14+
:base-target-path "_site/new/"
1515
:hide-ui-header true
1616
:show false
1717
:live-reload false

0 commit comments

Comments
 (0)