Skip to content

Commit

Permalink
fixes #1: commit and tag before publish for the manifest.
Browse files Browse the repository at this point in the history
Committing and tagging is done before the publish,
so the release-commit-hash and the release-tag
end up in the manifest.
  • Loading branch information
gseitz committed Oct 21, 2011
1 parent 038b782 commit 703585e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,11 @@ The default release process consists of the following tasks:
1. Run `test:test`, if any test fails, the release process is aborted.
1. Write `version in ThisBuild := "$releaseVersion"` to the file `version.sbt` and also apply this setting to the current [build state](https://github.com/harrah/xsbt/wiki/Build-State).
1. Run `test:test`.
1. Run `publish`.
1. Commit the changes in `version.sbt`.
1. Tag the previous commit with `v$version` (eg. `v1.2`, `v1.2.3`).
1. Run `publish`.
1. Write `version in ThisBuild := "nextVersion"` to the file `version.sbt` and also apply this setting to the current build state.
1. Commit the changes in `version.sbt`.

In case of a failure of a task, the release process is aborted.

Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/ReleasePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ object Release {
runTest,
setReleaseVersion,
runTest,
releaseTask(publish in Global in ref),
commitReleaseVersion,
tagRelease,
releaseTask(publish in Global in ref),
setNextVersion,
commitNextVersion
)
Expand Down

0 comments on commit 703585e

Please sign in to comment.