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 do |s| = "jekyll-theme-simple-blog"
s.version = "0.0.2"
s.license = "CC0-1.0"
s.authors = ["Lorenzo Pirritano"] = ["[email protected]"]
s.homepage = ""
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|
s.platform = Gem::Platform::RUBY
s.add_runtime_dependency "jekyll", "~> 3.3"
set -e
bundle exec jekyll build
gem build jekyll-theme-simple-blog.gemspec
# 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
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment