Triggering on release tag

When I push a new signed tag to my master branch, GitHub seems to treat this as a new release. I like this, and would like to use that automatic release feature to run a workflow.

I have a workflow with the following:

on:  
release:  
types: [created]  

But it never seems to trigger even though on the release page of my repo I see a new release after I push the tag.

I tested push a tag from git command to github repo, it doesn’t create a real release even though the tag name show in Releases list. 

When you try to get the release with the tag name using this API, you will get  “message”: “Not Found”. 

You could consider to use API to create a release

@lack  Use the release API could successfully create a release with a specific tag, and then the workflow on: release will be triggered. Please check whether this could work for you: