fix: Refine release workflow tag patterns to exclude prerelease versions.

This commit is contained in:
Jiaxin Peng
2025-12-10 23:18:03 +00:00
parent 90dcc1aef0
commit ccfe40c1f0

View File

@@ -5,8 +5,14 @@ on:
branches: branches:
- main - main
tags: tags:
- "v*.*.*" # Only trigger for release tags (e.g., v1.0.0, v2.3.4)
- "[0-9]+.[0-9]+.[0-9]+" # Excludes prerelease tags (e.g., v2.8.0-beta.3, v1.0.0-rc.1)
- "v[0-9]+.[0-9]+.[0-9]"
- "v[0-9]+.[0-9]+.[0-9][0-9]"
- "v[0-9]+.[0-9]+.[0-9][0-9][0-9]"
- "v[0-9]+.[0-9][0-9].[0-9]"
- "v[0-9]+.[0-9][0-9].[0-9][0-9]"
- "v[0-9]+.[0-9][0-9].[0-9][0-9][0-9]"
env: env:
PLUGIN_NAME: share-to-notionnext # Change this to match the id of your plugin. PLUGIN_NAME: share-to-notionnext # Change this to match the id of your plugin.