Dist::Zilla::Plugin::SignReleaseNotes - Create and signs a 'Release' notes file
version 0.0001
This plugin will sign a 'Release' file that includes:
1. Git commits since the last tag 2. the sha256 checksum of the file that is being distributed to CPAN
the file is then signed using Module::Signature.
The resulting file can be used as the Release information for GitHub or similar.
This plugin should appear after any other AfterBuild plugin in your dist.ini file
dist.ini
A string value. If always then a signature will be created after an archive is created. If always then the 'Release' file will be signed after the release. Default is always
always
This attribute can be overridden by an environment variable DZSIGN
DZSIGN
The main processing function includes getting the git information. Should likely be split up.
Create's the plaintext Release file contents.
Signs the 'Release' file to Module::Signature. Unfortunately we cannot use the Module::Signature::sign function as it gets its plaintext from the list of files that are normally used.
Gets the short version of the checksums and the titles of each git commit since the most recent tag that was found in the repo.
Get's the checksum of the file being released. Expects the filename and returns the checksum (currently sha256 only).
Get's the name of the Distribution being released. This takes it from the filename. There is likely a better way to obtain it.
Get's the version of the Distribution being released. This takes it from the $self->{zilla}->version. There is likely a better way to obtain it.
Timothy Legge <timlegge@cpan.org>
This software is copyright (c) 2021 by Timothy Legge.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Timothy Legge
To install Dist::Zilla::Plugin::SignReleaseNotes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::SignReleaseNotes
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::SignReleaseNotes
For more information on module installation, please visit the detailed CPAN module installation guide.