diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index a9ceee4..167aa08 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -27,10 +27,11 @@ on: branches: - main tags: - - '[0-9]+.[0-9]+.[0-9]+' - - '[0-9]+.[0-9]+.[0-9]+-*' - - 'v[0-9]+.[0-9]+.[0-9]+' - - 'v[0-9]+.[0-9]+.[0-9]+-*' + # Glob, not regex: `[0-9]` is one digit and `*` is the rest, so these + # match 1.2.3 and 1.2.3-rc1 while ignoring tags that are not versions. + # A `+` here would be read as a literal plus. + - '[0-9]*.[0-9]*.[0-9]*' + - 'v[0-9]*.[0-9]*.[0-9]*' pull_request: paths: - 'Dockerfile'