Skip to content

Commit

Permalink
GH-4: Deployment from Travis to github releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
magagr committed Mar 21, 2017
1 parent 6b504e7 commit 965f1fc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
report_template.tex
report_template.pdf
report_template.docx
project_meta_requirements.pdf
out/*
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@ addons:

script:
make all

deploy:
provider: releases
api_key:
secure: $GH_TOKEN
file: out/*
skip_cleanup: true
on:
tags: true
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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/*
Empty file added out/.gitignore
Empty file.

0 comments on commit 965f1fc

Please sign in to comment.