mirror of
https://github.com/thangisme/notes.git
synced 2024-10-16 12:03:52 -04:00
27 lines
618 B
HCL
27 lines
618 B
HCL
workflow "Publish to RubyGems" {
|
|
on = "release"
|
|
resolves = [
|
|
"Publish to GPR",
|
|
"Publish to Ruby Gems",
|
|
]
|
|
}
|
|
|
|
action "Build from Gemspec" {
|
|
uses = "scarhand/actions-ruby@master"
|
|
runs = "gem build *.gemspec"
|
|
}
|
|
|
|
action "Publish to Ruby Gems" {
|
|
uses = "scarhand/actions-ruby@master"
|
|
needs = ["Build from Gemspec"]
|
|
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"
|
|
}
|