Runs a command line script
Parameters:
content: String
(required): the script content
Adds the files to the git's staging area
Parameters:
paths: [String]
(optional): The paths you want to add to the staging area - default: [.]
Creates a new git branch and switches to it. It fails if the branch already exists
Parameters:
branchName:String
(required): The name of the new branch
Commits on git
Parameters:
message: String
(optional): The commit message - default: "Version $VERSION"
no_verify: Bool
(optional): bypasses the pre-commit and commit-msg hooks default: false
Tags the current version
Pushes the current changes
Parameters:
remote: String
(optional): The name of the remote you want to push to - default: "origin"
branch: String
(optional): The name of the branch you want to push - default: "master"
Comment the dev dependencies on your Package.swift
to avoid them to be shipped with your release
Dev dependencies are all the lines in the Package.swift
file with // dev
Parameters:
package_path: String
(optional): The relative path to your Package.swift
file - default: "Package.swift"
Uncomment the dev dependencies on your Package.swift
after you released.
Parameters:
package_path: String
(optional): The relative path to your Package.swift
file - default: "Package.swift"
Compile and run a script file written in swift
The version is passed to the script as first parameter
Parameters:
script_path: String
(required): The relative path to the swift script
arguments: [String]
(optional): Additional arguments for the swift script