Skip to content
Snippets Groups Projects
main.workflow 644 B
Newer Older
Patrick Marsceill's avatar
Patrick Marsceill committed
workflow "Publish to RubyGems" {
  on = "release"
Patrick Marsceill's avatar
Patrick Marsceill committed
  resolves = [
    "Publish to GPR",
    "Publish to Ruby Gems",
  ]
Patrick Marsceill's avatar
Patrick Marsceill committed
}

action "Build from Gemspec" {
  uses = "scarhand/actions-ruby@master"
Patrick Marsceill's avatar
Patrick Marsceill committed
  runs = "gem build just-the-docs.gemspec"
Patrick Marsceill's avatar
Patrick Marsceill committed
action "Publish to Ruby Gems" {
Patrick Marsceill's avatar
Patrick Marsceill committed
  uses = "scarhand/actions-ruby@master"
  needs = ["Build from Gemspec"]
Patrick Marsceill's avatar
Patrick Marsceill committed
  runs = "gem push *.gem"
Patrick Marsceill's avatar
Patrick Marsceill committed
  secrets = ["RUBYGEMS_AUTH_TOKEN"]
}
Patrick Marsceill's avatar
Patrick Marsceill committed

action "Publish to GPR" {
  uses = "scarhand/actions-ruby@master"
  needs = ["Build from Gemspec"]
  secrets = ["GPR_AUTH_TOKEN"]
Patrick Marsceill's avatar
Patrick Marsceill committed
  runs = " gem push --key [\"GPR_AUTH_TOKEN\"] --host https://rubygems.pkg.github.com/pmarsceill *.gem"