Decouple HTML generation from the transcription chain
The HTML file tasks no longer depend on the text file task, which
avoids triggering audio downloads in CI where text files exist but
audio and transcripts do not.

Assisted-by: Claude Opus 4.6 via pi
change qnwluztlrmspuszuoyoxoxqzqlpqtksl
commit 71ce51096462d43a9e3ef133c3c8ff5fd545eace
author Alpha Chen <alpha@kejadlen.dev>
date
parent oyqwzqqr
diff --git a/Rakefile b/Rakefile
index 03d7e75..3f4e4ea 100644
--- a/Rakefile
+++ b/Rakefile
@@ -81,7 +81,11 @@ EPISODE_TASKS.each do |et|
     CONFIG.transcriber.render(et.transcript_path, et.text_path)
   end
 
-  file et.html_path => [et.text_path, CONFIG.pages_dir.to_s] do
+  # Skip the text file's task chain — in CI the text files are
+  # committed but audio and transcripts aren't present.
+  file et.html_path => [CONFIG.pages_dir.to_s] do |t|
+    next if File.exist?(t.name) && File.mtime(t.name) >= File.mtime(et.text_path)
+
     require "cgi"
     require "erb"