Creating a release
Automatic github releases
Attach an asset to a github release
Automating releases using Git work flows
Pub Release supports the concept of pre and post release hooks.
A hook is simply a script that is run before or after the release is pushed to pub.dev.
Hooks live in the following directories:
is the directory where your pubspec.yaml lives.
You can include any number of scripts in each of these directories and they will be run in alphanumerical order.
When your hook is called it will be passed the new version as a cli argument:
flag is passed to the
command then a
flag will be passed on the command line to the hook.
flag is passed than your hook should suppress any actions that permanently modify the project.