diff --git a/.github/workflows/compress-images.yml b/.github/workflows/compress-images.yml deleted file mode 100644 index 3d95fd0..0000000 --- a/.github/workflows/compress-images.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: Compress images -on: pull_request -jobs: - build: - name: calibreapp/image-actions - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: calibreapp/image-actions - uses: docker://calibreapp/github-image-actions - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..417555a --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/.gitignore b/.gitignore index 4cafc5f..d067e4e 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ Gemfile.lock *~ _site/ .jekyll-metadata +*.gem diff --git a/Gemfile b/Gemfile index 2b46ce5..20fd642 100644 --- a/Gemfile +++ b/Gemfile @@ -1,4 +1,5 @@ source 'https://rubygems.org' + gem 'github-pages', group: :jekyll_plugins do gem 'jekyll-feed' gem 'jekyll-paginate' @@ -7,4 +8,3 @@ gem 'github-pages', group: :jekyll_plugins do gem 'kramdown' gem 'rouge' end - diff --git a/jekyll-theme-elementary-blog.gemspec b/jekyll-theme-elementary-blog.gemspec new file mode 100644 index 0000000..b55e64f --- /dev/null +++ b/jekyll-theme-elementary-blog.gemspec @@ -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 = ["webdev@elementary.io"] + + 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