Skip to content

Commit 60218b0

Browse files
committed
fix(craft): use regex pattern for binary artifact matching
Craft's patternToRegexp() treats plain strings as exact matches, escaping special characters like *. The pattern 'sentry-*' was being converted to /^sentry\-\*$/ which only matches the literal string 'sentry-*', not artifact names like 'sentry-linux-x64' or 'sentry-darwin-arm64'. This caused the 0.9.0 release to ship without any platform binaries — only gh-pages and npm-package (exact name matches) were uploaded. Use Craft's regex syntax ('/^sentry-.*$/') so the pattern is parsed as an actual regex that matches all sentry-prefixed artifacts.
1 parent 00e589e commit 60218b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.craft.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ artifactProvider:
1010
config:
1111
artifacts:
1212
Build:
13-
- 'sentry-*'
13+
- '/^sentry-.*$/'
1414
- 'npm-package'
1515
- 'gh-pages'
1616
targets:

0 commit comments

Comments
 (0)