diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..ac2584f --- /dev/null +++ b/.drone.yml @@ -0,0 +1,36 @@ +kind: pipeline +type: docker +name: default + +steps: +- name: pandoc + image: pandoc/latex:edge + user: 1000:1000 + volumes: + - name: tmp + path: /drone/src/out + commands: + - make +- name: gitea release + image: plugins/gitea-release + user: 1000:1000 + volumes: + - name: tmp + path: /drone/src/out + settings: + api_key: + from_secret: gitea_release + base_url: https://git.norangeb.it + title: corriculum vitae + files: + - /drone/src/out/*.pdf + + +volumes: +- name: tmp + host: + path: /home/drone + +trigger: + event: + - tag diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a136337 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pdf diff --git a/makefile b/makefile index dda7c67..46f298f 100644 --- a/makefile +++ b/makefile @@ -1,5 +1,8 @@ -cv.pdf: cv.yaml - pandoc cv.yaml --template pancv -o cv.pdf +cv.pdf: cv.yaml out + pandoc cv.yaml --template pancv -o out/cv.pdf -epass.pdf: cv.yaml - pandoc cv.yaml --template pancv -V europass -o epass.pdf +epass.pdf: cv.yaml out + pandoc cv.yaml --template pancv -V europass -o out/epass.pdf + +out: + mkdir out