From 0254d9961a03140239fb52771bdcdd66fcdefc97 Mon Sep 17 00:00:00 2001
From: Patrick Marsceill <pmarsceill@users.noreply.github.com>
Date: Mon, 13 May 2019 16:37:01 -0400
Subject: [PATCH] Update main.workflow

---
 .github/main.workflow | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/.github/main.workflow b/.github/main.workflow
index 49a5c992..4c110920 100644
--- a/.github/main.workflow
+++ b/.github/main.workflow
@@ -1,16 +1,26 @@
 workflow "Publish to RubyGems" {
   on = "release"
-  resolves = ["scarhand/actions-ruby@master"]
+  resolves = [
+    "Publish to GPR",
+    "Publish to Ruby Gems",
+  ]
 }
 
 action "Build from Gemspec" {
   uses = "scarhand/actions-ruby@master"
-  runs = "build *.gemspec"
+  runs = "gem build *.gemspec"
 }
 
-action "scarhand/actions-ruby@master" {
+action "Publish to Ruby Gems" {
   uses = "scarhand/actions-ruby@master"
   needs = ["Build from Gemspec"]
-  runs = "push *.gem"
+  runs = "gem push *.gem"
   secrets = ["RUBYGEMS_AUTH_TOKEN"]
 }
+
+action "Publish to GPR" {
+  uses = "scarhand/actions-ruby@master"
+  needs = ["Build from Gemspec"]
+  secrets = ["GPR_AUTH_TOKEN"]
+  runs = " gem push --key github --host https://rubygems.pkg.github.com/pmarsceill *.gem"
+}
-- 
GitLab