Commit 4cad296e authored by Lorenzo's avatar Lorenzo

restore and update files for github GitPages and Travis CI to build

parent bccd3b73
Pipeline #12866527 passed with stage
in 1 minute and 35 seconds
language: ruby
cache: bundler
sudo: false
rvm: 2.2
install: script/bootstrap
script: script/cibuild
# encoding: utf-8
Gem::Specification.new do |s|
s.name = "jekyll-theme-simple-blog"
s.version = "0.0.2"
s.license = "CC0-1.0"
s.authors = ["Lorenzo Pirritano"]
s.email = ["lorepirri@gmail.com"]
s.homepage = "https://github.com/lorepirri/jekyll-theme-simple-blog"
s.summary = "Simple Blog Theme is a clean, responsive blogging theme for Jekyll and GitHub Pages, with social/SEO, multilanguage features."
s.files = `git ls-files -z`.split("\x0").select do |f|
f.match(%r{^((_includes|_layouts|_sass|assets)/|(LICENSE|README|sitemaps|projects-en|projects-it|now-en|now-it|index-en|index-it|feed-en|feed-it|contact-en|contact-it|about-en|about-it|404-en|404-it)((\.(txt|md|markdown|xml)|$)))}i)
end
s.platform = Gem::Platform::RUBY
s.add_runtime_dependency "jekyll", "~> 3.3"
end
#!/bin/sh
set -e
bundle exec jekyll build
gem build jekyll-theme-simple-blog.gemspec
#!/bin/sh
# Tag and push a release.
set -e
# Make sure we're in the project root.
cd $(dirname "$0")/..
# Make sure the darn thing works
bundle update
# Build a new gem archive.
rm -rf jekyll-theme-simple-blog-*.gem
gem build -q jekyll-theme-simple-blog.gemspec
# Make sure we're on the master branch.
(git branch | grep -q 'master') || {
echo "Only release from the master branch."
exit 1
}
# Figure out what version we're releasing.
tag=v`ls jekyll-theme-simple-blog-*.gem | sed 's/^jekyll-theme-simple-blog-\(.*\)\.gem$/\1/'`
# Make sure we haven't released this version before.
git fetch -t origin
(git tag -l | grep -q "$tag") && {
echo "Whoops, there's already a '${tag}' tag."
exit 1
}
# Tag it and bag it.
gem push jekyll-theme-simple-blog-*.gem && git tag "$tag" &&
git push origin master && git push origin "$tag"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment