Prevent deployment of pre-releases

Open
#5 9 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
github-actions
Domain
ci-cd

Research direction

Open the README section that documents the GitHub Actions tag trigger. Update the documented tag patterns so tags with a hyphenated suffix, such as beta or release-candidate tags, are excluded while normal release tags still trigger deployment. Verify the example matches the requested workflow configuration.

Written by the indexing model from the issue text.

Description

help wanted needs:documentation type:enhancement

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.

name: Deploy to WordPress.org
on:
  push:
    tags:
    - "*"
    - "!*-*"
...

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.

Dominant language
Shell
Stars
665
Forks
115
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 10up/action-wordpress-plugin-deploy

All issues in 10up/action-wordpress-plugin-deploy

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.