I changed sample dart.yml workflow from on push to on release and it is not triggered

Goal is workflow to work on release!

I was creating github actions, my file publish.yml was not working so I thought it was me who was making a mistake.

After many tries, I decided to create workflow from samples, so I did it like that, it was dart.yml workflow which I created, it was configured for on push and on pull_request by default and it was working very well, then I replaced on push and on pull_request with on release and workflow is not triggered when I am creating or deleting release and there is no new workflow runs inside the actions tab.

view workflow files here: https://github.com/lomsa-dev/http-mock-adapter/tree/main/.github/workflows