notes/.github/main.workflow

27 lines
644 B
Plaintext
Raw Normal View History

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