From 95f95b6a1c2ff08ddf01b4ef2aff8dc407934a1b Mon Sep 17 00:00:00 2001
From: Julien WITTOUCK <julien.wittouck@gmail.com>
Date: Wed, 23 Oct 2024 10:24:49 +0200
Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20:=20refactor=20tp=20export?=
 =?UTF-8?q?s?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Taskfile.yaml | 17 ++++-------------
 1 file changed, 4 insertions(+), 13 deletions(-)

diff --git a/Taskfile.yaml b/Taskfile.yaml
index 3d2ce70..d218cde 100644
--- a/Taskfile.yaml
+++ b/Taskfile.yaml
@@ -2,15 +2,12 @@
 
 version: '3'
 
-vars:
-  GREETING: Hello, World!
-
 tasks:
   default:
     cmds:
       - task: update-tps
-      - task: update-index-date
       - task: export-pdf
+      - task: update-index-date
 
   update-index-date:
     vars:
@@ -30,9 +27,9 @@ tasks:
 
   update-one-tp:
     internal: true
+    label: export-one-tp-{{ .FILE_NAME }}
     sources:
       - '{{ .INPUT }}'
-    label: export-one-tp-{{ .FILE_NAME }}
     vars:
       FILE_NAME:
         sh: echo $(basename {{.INPUT}} .adoc)
@@ -40,17 +37,11 @@ tasks:
       - asciidoctor '{{ .INPUT }}'
       - asciidoctor-pdf '{{ .INPUT }}'
 
-  export-tp-pdf:
-    run: always
-    sources:
-      - w*/*.adoc
-    cmds:
-      - for: sources
-        cmd: asciidoctor-pdf '{{ .ITEM }}'
-
   export-one-course-pdf:
     internal: true
     label: export-one-course-pdf-{{ .FILE_NAME }}
+    sources:
+    - '{{ .INPUT }}'
     vars:
       FILE_NAME:
         sh: echo $(basename {{.INPUT}} .html)
-- 
GitLab