diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0b4f19f --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.docx +*.zip +Gemfile.lock diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..66c4c61 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +before_script: +- sudo apt-get update +- sudo apt-get install -y pandoc zip +deploy: + provider: releases + api_key: + secure: kMooLRcmw6nKoJGncvNl11c32uZoZQxHdvsL7VPAkkaK3x5bhzbG/1m5gYLp6IcAPjyqEtRiENcaER3YshN2uEqUS+z8YNFH+rLe3Uy/T4ySJ0R2i70YhobHFirQyY/BMKmx9lMIc/2AY7z4fj2xqm4RxVpQvXVhPI35d0tfuqA= + file: "Series-Seed-Microsoft-Word.zip" + skip_cleanup: true + on: + repo: kemitchell/equity + branch: master + tags: true +language: ruby +before_deploy: bundle exec rake diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..71e0980 --- /dev/null +++ b/Gemfile @@ -0,0 +1,5 @@ +source "https://rubygems.org" + +group :test do + gem 'rake' +end diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..d3dcacd --- /dev/null +++ b/Rakefile @@ -0,0 +1,20 @@ +require 'rake' +require 'rake/clean' + +markdown_files = Rake::FileList['*.md'] +docx_files = markdown_files.ext('docx') +zip = 'Series-Seed-Microsoft-Word.zip' + +task :default => zip + +task zip => docx_files do |t| + sh "zip '#{t.name}' " + t.prerequisites.map { |file| "'#{file}'" }.join(' ') +end + +rule '.docx' => '.md' do |t| + sh "pandoc --smart -o '#{t.name}' '#{t.source}'" +end + +CLEAN.include(docx_files) + +CLOBBER << zip