drone-plugins / drone-gitea-release

Drone plugin for creating and tagging Gitea releases
http://plugins.drone.io/drone-plugins/drone-gitea-release
Apache License 2.0
63 stars 21 forks source link

Glob support for ** using `mattn/go-zglob` #40

Open dkyeremeh opened 9 months ago

dkyeremeh commented 9 months ago

TLDR;

I'm trying to use drone-gitea-release to publish android builds to my Gitea instance, but it does not support ** glob pattern.

DETAILS

When I set the value of files to anything with , it doesn't match the expected files even though is a standard glob pattern.

Example: the file android/app/build/outputs/bundle/experimentalPlayDebug/app-experimental-play-debug.aab cannot be matched with android/app/build/outputs/**/*.aab.

The name of the android build files can be different depending on some conditions, so it's not feasible to hard-code it as the value of the files option

POSSIBLE SOLUTION

After some digging, I discovered that filepath.Glob does not support ** Link to issue. mattn/go-zglob was recommended instead.

I would have loved to create a PR, but I have no experience in Golang