Fix release task on CI.

This commit is contained in:
Marek Fořt 2020-11-01 09:19:09 +01:00
parent bb749e4e9e
commit 6e0d692d62
2 changed files with 9 additions and 5 deletions

View File

@ -81,9 +81,9 @@ task :local_package do
end
desc("Builds, archives, and publishes tuist and tuistenv for release")
task :release do
task :release, [:version] do |task, options|
decrypt_secrets
release
release(options[:version])
end
desc("Publishes the installation scripts")
@ -249,8 +249,12 @@ def package
FileUtils.cp(".build/release/tuistenv.zip", "build/tuistenv.zip")
end
def release
version = cli.ask("Introduce the released version:")
def release(version)
if version == nil
version = cli.ask("Introduce the released version:")
end
puts "Releasing #{version} 🚀"
package

View File

@ -12,7 +12,7 @@ let config = TapestryConfig(
// .pre(tool: "bundle", arguments: ["exec", "rake", "features"]),
.pre(.docsUpdate),
.pre(tool: "sudo", arguments: ["xcode-select", "-s", "/Applications/Xcode_11.5.app"]),
.post(tool: "bundle", arguments: ["exec", "rake", "release"]),
.post(tool: "bundle", arguments: ["exec", "rake", "release[\(Argument.version)]"]),
.post(tool: "bundle", arguments: ["exec", "rake", "release_scripts"]),
.post(
.githubRelease(