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 +4 -4
- data/.github/workflows/gem.yml +5 -21
- data/lib/jekyll_test_plugin/version.rb +1 -1
- metadata +2 -3
- data/.github/workflows/scripts/tag_info.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 650d9ced6baa1565b3185c87034c71e981b4e045948f7d02ee1afee45a9032bb
|
4
|
+
data.tar.gz: b43e35515d0026d9d3e7439a3235fa1ddd10dca5bf6c19817a2cf4dc0d16451a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb015f64136720aa982644a2a4a3eec7b333e08126838a0de76ead9867debf855eb366d7b536754aa4083a5db6e23726a2d10cfdbbb27dec02e120e71f8e22bd
|
7
|
+
data.tar.gz: 72cd2e9540c74dd1bc9136a94271f4f80bf5c263f1bc0c6a3aa84027eb032d395467043d33031afef63716be312ebb7e2539cb27b8110723988d47bdcc2f1734
|
data/.github/workflows/gem.yml
CHANGED
@@ -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:
|
27
|
-
|
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
|
-
|
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 }}
|
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.
|
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-
|
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
|