diff --git a/.gitignore b/.gitignore index 8cd391a..d42ab35 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1 @@ -report_template.tex -report_template.pdf -report_template.docx -project_meta_requirements.pdf +out/* diff --git a/.travis.yml b/.travis.yml index ab80e74..da8d69c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,3 +6,12 @@ addons: script: make all + +deploy: + provider: releases + api_key: + secure: $GH_TOKEN + file: out/* + skip_cleanup: true + on: + tags: true diff --git a/Makefile b/Makefile index 4926cbf..d4a034a 100644 --- a/Makefile +++ b/Makefile @@ -1,20 +1,20 @@ # convert the markdown template to latex textemplate: report_template.md - pandoc -o report_template.tex $< + pandoc -o out/report_template.tex $< # convert the markdown template to pdf pdftemplate: report_template.md - pandoc -o report_template.pdf $< + pandoc -o out/report_template.pdf $< # convert the markdown template to word wordtemplate: report_template.md - pandoc -o report_template.docx $< + pandoc -o out/report_template.docx $< # convert the markdown requirements to pdf requirements: project.md - pandoc -o project_meta_requirements.pdf $< + pandoc -o out/project_meta_requirements.pdf $< all: textemplate pdftemplate wordtemplate requirements clean: - xargs -I % find -name % -delete < .gitignore + rm out/* diff --git a/out/.gitignore b/out/.gitignore new file mode 100644 index 0000000..e69de29