App-psst
view release on metacpan or search on metacpan
; version = last tagged version plus one
;;; FileGatherer again / InjectFiles / munge
[License] ; (full text)
[ReadmeAnyFromPod / ForSource]
type = pod
filename = README.pod
location = root
[ReadmeAnyFromPod / ForDist]
type = text
filename = README
location = build
[Test::Perl::Critic]
[PodSyntaxTests]
[HasVersionTests] ; add xt/release/has-version.t for Test::HasVersion
[ExtraTests] ; move ./xt/$some to ./t/ with %ENV guard
[PodVersion] ; add =head1 VERSION after NAME
[PkgVersion]
; or [OurPkgVersion], which needs telling where but doesn't add lines
[GitFmtChanges]
;;; AfterBuild
[Git::CommitBuild] ; and AfterRelease, if we wanted
; commit the build result to branch built/master
branch = built/%b
message = Build results of %v (%h on %b)
[Run::AfterBuild]
; PodVersion has already included the (ever-changing) version section.
; Hack it out to prevent copious diffs.
run = perl -i -0pe 's{\n*=head1 VERSION\n+version [0-9._]+$}{}sm' README.pod
;;; BeforeRelease
[Git::Check]
; prevent release if working copy is mucky
allow_dirty =
[TestRelease] ; run all tests before release
[ConfirmRelease]
[Git::Tag]
tag_message = v%v built with dzil %{yyyy-MM-dd HH:mm:ss}d
; tagging happens after release
; [Git::Tag::ForRelease] can also do this, with different options
;;; Release
; [Rsync] ; upload distribution tarball
[UploadToCPAN]
; [ArchiveRelease] ; Move it somewhere. Do this after other releasers.
;;; AfterRelease
; [Git::Commit] to commit changes, after release
; [Git::Push]
;; not ready for autopush yet
( run in 0.902 second using v1.01-cache-2.11-cpan-b16cb0d3907 )