|
@@ -63,6 +63,15 @@ Additional args to render CONTENT can be passed via RENDER-ARGS."
|
63
|
63
|
(curr (rel-path dest ".curr")))
|
64
|
64
|
(ensure-directories-exist new-build)
|
65
|
65
|
(run-program "mv ~a ~a" staging new-build)
|
|
66
|
+ (when (github *config*)
|
|
67
|
+ (let ((cname-filename (rel-path "" "~a/CNAME" new-build))
|
|
68
|
+ (stripped-url (subseq (domain *config*)
|
|
69
|
+ (+ 2 (position #\/ (domain *config*))))))
|
|
70
|
+ (format t "~a" cname-filename)
|
|
71
|
+ (with-open-file (cname cname-filename
|
|
72
|
+ :direction :output
|
|
73
|
+ :if-exists :supersede)
|
|
74
|
+ (format cname "~a~%" stripped-url))))
|
66
|
75
|
(when (probe-file prev)
|
67
|
76
|
(delete-directory-and-files (truename prev) :if-does-not-exist :ignore))
|
68
|
77
|
(when (probe-file curr)
|