2020-09-28 01:54:57 +08:00
|
|
|
import TapestryDescription
|
|
|
|
|
|
|
|
let config = TapestryConfig(
|
|
|
|
release: Release(
|
|
|
|
actions:
|
|
|
|
[
|
2020-10-28 15:45:49 +08:00
|
|
|
.pre(tool: "git", arguments: ["checkout", "main"]),
|
2020-09-28 01:54:57 +08:00
|
|
|
.pre(tool: "git", arguments: ["pull"]),
|
2020-10-31 01:39:00 +08:00
|
|
|
.pre(tool: "bundle", arguments: ["install"]),
|
2020-09-28 01:54:57 +08:00
|
|
|
.pre(.dependenciesCompatibility([.spm(.all)])),
|
|
|
|
.pre(tool: "swift", arguments: ["test"]),
|
|
|
|
.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_scripts"]),
|
|
|
|
.post(
|
|
|
|
.githubRelease(
|
|
|
|
owner: "tuist",
|
|
|
|
repository: "tuist",
|
|
|
|
assetPaths: [
|
|
|
|
"build/tuist.zip",
|
|
|
|
"build/tuistenv.zip",
|
|
|
|
]
|
|
|
|
)
|
2020-09-29 15:17:58 +08:00
|
|
|
),
|
2020-09-28 01:54:57 +08:00
|
|
|
],
|
|
|
|
add: [
|
2020-09-29 15:17:58 +08:00
|
|
|
"CHANGELOG.md",
|
2020-09-28 01:54:57 +08:00
|
|
|
],
|
|
|
|
commitMessage: "Version \(Argument.version)",
|
|
|
|
push: true
|
|
|
|
)
|
|
|
|
)
|