-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent deployment of pre-releases #5
Comments
Do you typically do these tags on |
I think the way GitHub actions work, there is no difference if you create a tag on I personally don't tags/publish pre-releases, but for some plugins I help to maintain, we use pre-release tags. We usually do them on |
I'm actually not sure about the tag+branch filtering? I suppose a tag is not technically pushed to a branch but I do wonder if they can somehow be combined in the way GitHub is using them, since a tag does know which branch that tagged commit was on. In any case, if it's all being done on |
I would just add an example to the readme. Either with this as an addition/alternative or by just explaining the new line. |
Copying my comment to @sc0ttkclark over here:
|
@2ndkauboy - Simply update your action script. This is ours using semver. It works with v1.0.0, but not with v1.1.0-alpha.1 or v2.0-beta.3 etc
This works, but there is also
Documented here: https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags |
Another option is to use the
Edit: Changed the above to |
That's not the case according to https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#release (my emphasis):
|
@GaryJones nice catch! Adding a task here for us to document that:
|
Is your enhancement related to a problem? Please describe.
When developing a plugin on GitHub, it's not uncommon to tag pre-releases (like beta and release candidates). Those tags would also trigger a deployment on the plugin directory.
Describe the solution you'd like
The action currently runs on all tags. With a simple addition, which excludes all tags with a suffix (e.g. 2.0.0-beta, 2.0.0-RC1, etc.) such pre-release tags would not trigger the action.
Additional context
This change can be done without chaning the files of the actions, it should only be added to the README of this repo.
The text was updated successfully, but these errors were encountered: