jekyll_test_plugin 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a4e120156156aa95c5243f4a57951686163d28f9c2e37e59c8af7ac86925d28
4
- data.tar.gz: de6e8e324b8e1bb3b7b1de2d9f0283e0fa687bc787b320218362fbfe6e445900
3
+ metadata.gz: 650d9ced6baa1565b3185c87034c71e981b4e045948f7d02ee1afee45a9032bb
4
+ data.tar.gz: b43e35515d0026d9d3e7439a3235fa1ddd10dca5bf6c19817a2cf4dc0d16451a
5
5
  SHA512:
6
- metadata.gz: eeb41a2ca05835ae3173b9dc3233cc65b2e81935c89a1f40989046d86735d049618ceab55832d8544cfbf8b9df20694797b52062ed18638523e143be2d22a737
7
- data.tar.gz: 3f9e61fbf7bc44f48365749ca103aa57aea9dfe583b81d5b98009b17150c16554625e6af78f649b75c2fdfda612dabb7dc8eb0692c1a618136c43a8a4d161c05
6
+ metadata.gz: cb015f64136720aa982644a2a4a3eec7b333e08126838a0de76ead9867debf855eb366d7b536754aa4083a5db6e23726a2d10cfdbbb27dec02e120e71f8e22bd
7
+ data.tar.gz: 72cd2e9540c74dd1bc9136a94271f4f80bf5c263f1bc0c6a3aa84027eb032d395467043d33031afef63716be312ebb7e2539cb27b8110723988d47bdcc2f1734
@@ -2,6 +2,8 @@ name: Release Gem
2
2
 
3
3
  on:
4
4
  push:
5
+ branches:
6
+ - master
5
7
  paths:
6
8
  - "lib/**/version.rb"
7
9
 
@@ -23,27 +25,9 @@ jobs:
23
25
  with:
24
26
  ruby-version: ${{ matrix.ruby_version }}
25
27
  bundler-cache: true
26
- - name: Extract Plugin Version
27
- id: plugin-meta
28
- run: |
29
- echo "::set-output name=tag_version::$(bundle exec rake project:tag_version)"
30
- echo "::set-output name=gem_name::$(bundle exec rake project:gem_name)"
31
- shell: bash
32
- - name: Tag Details
33
- env:
34
- EVENT_JSON: ${{ toJSON(github.event) }}
35
- run: bundle exec ruby .github/workflows/scripts/tag_info.rb
36
- - name: "Build Gem (${{ steps.plugin-meta.outputs.gem_name }})"
37
- run: bundle exec rake build
38
- - name: Archive gem as artifact
39
- uses: actions/upload-artifact@v2
28
+ - name: Build and Publish Gem
29
+ uses: ashmaroli/release-gem@dist
40
30
  with:
41
- name: "${{ steps.plugin-meta.outputs.gem_name }}"
42
- path: "pkg/${{ steps.plugin-meta.outputs.gem_name }}.gem"
43
- retention-days: 5
44
- - name: Release Gem via Rubygems.org
31
+ gemspec_name: jekyll_test_plugin
45
32
  env:
46
33
  GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_GEM_PUSH_API_KEY }}
47
- run: |
48
- gem push pkg/${{ steps.plugin-meta.outputs.gem_name }}.gem
49
- git push origin ${{ steps.plugin-meta.outputs.tag_version }}
@@ -1,3 +1,3 @@
1
1
  module JekyllTestPlugin
2
- VERSION = "0.1.2"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_test_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Parker Moore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-22 00:00:00.000000000 Z
11
+ date: 2021-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -60,7 +60,6 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - ".github/workflows/gem.yml"
63
- - ".github/workflows/scripts/tag_info.rb"
64
63
  - ".gitignore"
65
64
  - Gemfile
66
65
  - History.markdown
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "colorator"
4
- require "json"
5
-
6
- data = JSON.parse(ENV["EVENT_JSON"])
7
- label = %Q(TAG #{data["ref"].delete_prefix("refs/tags/").cyan})
8
- puts <<-TEXT
9
-
10
- ---------------------------------------------------------
11
- #{label.center(64)}
12
- ---------------------------------------------------------
13
- Pushed by: #{data.dig("pusher", "name")&.cyan}
14
- Repository: #{data.dig("repository", "full_name")&.cyan}
15
-
16
- Head Commit Details:
17
-
18
- #{data.dig("head_commit", "message").inspect.cyan}
19
-
20
- Author: #{data.dig("head_commit", "author", "username")&.cyan}
21
- Committer: #{data.dig("head_commit", "committer", "username")&.cyan}
22
- SHA ID: #{data.dig("head_commit", "id")&.cyan}
23
- ---------------------------------------------------------
24
- TEXT