Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish #30

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions .github/workflows/compress-images.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---

name: Deploy

on:
push:
branches:
- master

jobs:
Deploy_Gem:
name: Deploy (Gem)
runs-on: ubunt-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Ruby
uses: actions/setup-ruby@v1

- name: Setup Credentials
run: |
mkdir -p ~/.gem
echo ":rubygems_api_key: ${RUBYGEMS_API_KEY}" > ~/.gem/credentials
chmod 0600 ~/.gem/credentials

- name: Build
run: gem build jekyll-theme-elementary-blog.gemspec

- name: Publish
run: gem push jekyll-theme-elementary-blog-*.gem
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ Gemfile.lock
*~
_site/
.jekyll-metadata
*.gem
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source 'https://rubygems.org'

gem 'github-pages', group: :jekyll_plugins do
gem 'jekyll-feed'
gem 'jekyll-paginate'
Expand All @@ -7,4 +8,3 @@ gem 'github-pages', group: :jekyll_plugins do
gem 'kramdown'
gem 'rouge'
end

23 changes: 23 additions & 0 deletions jekyll-theme-elementary-blog.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Gem::Specification.new do |spec|
spec.name = "jekyll-theme-elementary-blog"
spec.version = "1.0.1"
spec.authors = ["elementary"]
spec.email = ["[email protected]"]

spec.summary = "Jekyll theme in ways inspired by both Medium and the popular Medium-look-alike mediumish-theme-jekyll"
spec.homepage = "https://github.com/elementary/blog-template"
spec.license = "GPL-3.0"

spec.files = `git ls-files -z`.split("\x0")

spec.add_runtime_dependency "jekyll", "~> 3.6"
spec.add_runtime_dependency "jekyll-feed", "~> 0.13"
spec.add_runtime_dependency "jekyll-paginate", "~> 1.1"
spec.add_runtime_dependency "jekyll-redirect-from", "~> 0.15"
spec.add_runtime_dependency "jekyll-sitemap", "~> 1.4"
spec.add_runtime_dependency "kramdown", "~> 1.17"
spec.add_runtime_dependency "rouge", "~> 3.19"

spec.add_development_dependency "bundler", "~> 1.12"
spec.add_development_dependency "rake", "~> 10.0"
end