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
No related branches found
No related tags found
No related merge requests found
Pipeline #52618 failed
...@@ -2,15 +2,12 @@ ...@@ -2,15 +2,12 @@
version: '3' version: '3'
vars:
GREETING: Hello, World!
tasks: tasks:
default: default:
cmds: cmds:
- task: update-tps - task: update-tps
- task: update-index-date
- task: export-pdf - task: export-pdf
- task: update-index-date
update-index-date: update-index-date:
vars: vars:
...@@ -30,9 +27,9 @@ tasks: ...@@ -30,9 +27,9 @@ tasks:
update-one-tp: update-one-tp:
internal: true internal: true
label: export-one-tp-{{ .FILE_NAME }}
sources: sources:
- '{{ .INPUT }}' - '{{ .INPUT }}'
label: export-one-tp-{{ .FILE_NAME }}
vars: vars:
FILE_NAME: FILE_NAME:
sh: echo $(basename {{.INPUT}} .adoc) sh: echo $(basename {{.INPUT}} .adoc)
...@@ -40,17 +37,11 @@ tasks: ...@@ -40,17 +37,11 @@ tasks:
- asciidoctor '{{ .INPUT }}' - asciidoctor '{{ .INPUT }}'
- asciidoctor-pdf '{{ .INPUT }}' - asciidoctor-pdf '{{ .INPUT }}'
export-tp-pdf:
run: always
sources:
- w*/*.adoc
cmds:
- for: sources
cmd: asciidoctor-pdf '{{ .ITEM }}'
export-one-course-pdf: export-one-course-pdf:
internal: true internal: true
label: export-one-course-pdf-{{ .FILE_NAME }} label: export-one-course-pdf-{{ .FILE_NAME }}
sources:
- '{{ .INPUT }}'
vars: vars:
FILE_NAME: FILE_NAME:
sh: echo $(basename {{.INPUT}} .html) 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