Skip to content

Latest commit

 

History

History
 
 

README.md

release.hs

This tool automates some aspects of releasing a new version of Stack. It currently handles some tasks that need to be performed on each platform: building the release, running integration tests, and other pre-release checks.

See Checklist of additional manual release steps.

Prerequisites

These must be installed in the PATH to use the release tool:

  • stack
  • git (for Windows, msysgit is recommended).

Invocation

Usage: stack etc/scripts/release.hs [OPTIONS] TARGET

The tool must be run in the root of the working tree.

Options

The release tool is shake-based, so all standard shake options apply. In addition, the following options are accepted:

  • --allow-dirty: by default, the check rule aborts if the working tree is dirty, but this will allow it to continue. uploaded to.

Targets

  • release: check and build.
  • check: run pre-release checks.
  • build: build and sign the binary distribution.
  • clean: delete the build artifacts.