Skip to content

Latest commit

 

History

History
78 lines (49 loc) · 1.89 KB

Steps.md

File metadata and controls

78 lines (49 loc) · 1.89 KB

Steps

script

Runs a command line script

Parameters:

content: String (required): the script content

git_add

Adds the files to the git's staging area

Parameters:

paths: [String] (optional): The paths you want to add to the staging area - default: [.]

branch

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

commit

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

tag

Tags the current version

push

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"

hide_dev_dependencies

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"

unhide_dev_dependencies

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"

swift_script

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