Fix release task on CI.
This commit is contained in:
parent
bb749e4e9e
commit
6e0d692d62
12
Rakefile
12
Rakefile
|
@ -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
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue