use Path::Class;
-with 'Dist::Zilla::Role::BeforeRelease';
+with 'Dist::Zilla::Role::BeforeBuild';
-sub before_release {
+sub before_build {
my $self = shift;
+ return unless $ENV{DZIL_RELEASING};
+
my ($delta) = grep { $_->name eq 'lib/Moose/Manual/Delta.pod' }
@{ $self->zilla->files };
package inc::GitUpToDate;
use Moose;
-with 'Dist::Zilla::Role::BeforeRelease';
+with 'Dist::Zilla::Role::BeforeBuild';
sub git {
if (wantarray) {
}
}
-sub before_release {
+sub before_build {
my $self = shift;
+ return unless $ENV{DZIL_RELEASING};
+
my $branch = git "symbolic-ref HEAD";
die "Could not get the current branch"
unless $branch;