2019-02-06 14:54:07 -05:00
|
|
|
workflow "Publish to RubyGems" {
|
|
|
|
on = "release"
|
2019-05-13 16:37:01 -04:00
|
|
|
resolves = [
|
|
|
|
"Publish to GPR",
|
|
|
|
"Publish to Ruby Gems",
|
|
|
|
]
|
2019-02-06 14:54:07 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
action "Build from Gemspec" {
|
|
|
|
uses = "scarhand/actions-ruby@master"
|
2019-05-13 17:23:16 -04:00
|
|
|
runs = "gem build just-the-docs.gemspec"
|
2019-02-06 14:54:07 -05:00
|
|
|
}
|
|
|
|
|
2019-05-13 16:37:01 -04:00
|
|
|
action "Publish to Ruby Gems" {
|
2019-02-06 14:54:07 -05:00
|
|
|
uses = "scarhand/actions-ruby@master"
|
|
|
|
needs = ["Build from Gemspec"]
|
2019-05-13 16:37:01 -04:00
|
|
|
runs = "gem push *.gem"
|
2019-02-06 14:54:07 -05:00
|
|
|
secrets = ["RUBYGEMS_AUTH_TOKEN"]
|
|
|
|
}
|
2019-05-13 16:37:01 -04:00
|
|
|
|
|
|
|
action "Publish to GPR" {
|
|
|
|
uses = "scarhand/actions-ruby@master"
|
|
|
|
needs = ["Build from Gemspec"]
|
|
|
|
secrets = ["GPR_AUTH_TOKEN"]
|
2019-05-13 17:16:01 -04:00
|
|
|
runs = " gem push --key [\"GPR_AUTH_TOKEN\"] --host https://rubygems.pkg.github.com/pmarsceill *.gem"
|
2019-05-13 16:37:01 -04:00
|
|
|
}
|