Skip to content
Snippets Groups Projects
Verified Commit 95f95b6a authored by Julien Wittouck's avatar Julien Wittouck
Browse files

:recycle: : refactor tp exports

parent bd35b39e
Branches
No related tags found
No related merge requests found
Pipeline #52618 failed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment