Skip to content

Instantly share code, notes, and snippets.

@pepicrft
Created December 15, 2017 12:53
Show Gist options
  • Save pepicrft/9a8fa4f6955a054a7f30008a885af1b6 to your computer and use it in GitHub Desktop.
Save pepicrft/9a8fa4f6955a054a7f30008a885af1b6 to your computer and use it in GitHub Desktop.
let branch = "release/1.0.0"
try utils.git.createBranch(branch)
try utils.shell.runAndPrint(bash: "swift build")
try utils.git.addAll()
try utils.git.commitAll(message: "[\(branch)] Bump version")
try utils.git.tag(version)
try utils.git.push(remote: "origin", branch: branch, tags: true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment