Describe the bug
gh --version
gh version 2.4.0 (2021-12-21)
As the title states, I can't seem to find a way to submit multiple files with a wildcard. Straight from the docs, this sample command fails:
gh release create v1.2.3 ./dist/*.tgz
with the following message:
CreateFile ./dist/*.tgz: The filename, directory name, or volume label syntax is incorrect.
If I run the command, with an individual file, it works such as:
gh release create v1.2.3 dist\Tool-Linux.tgz
It works.
If I open up a Linux terminal, such as git bash, and try the command in there, it works.
Steps to reproduce the behavior
-
Type this
dir /b dist
-
View the output
Tool-Linux.tgz
Tool-MacOS.tgz
Tool-Windows.tgz
-
Type this
gh release create v1.2.3 ./dist/*.tgz
-
View the output
-
See error
CreateFile ./dist/*.tgz: The filename, directory name, or volume label syntax is incorrect.
I also tried:
gh release create v1.2.3 .\dist*.tgz
gh release create v1.2.3 dist*.tgz
cd dist
gh release create v1.2.3 *.tgz
with no succcess
Expected vs actual behavior
A successfully submited release tag
Describe the bug
gh --version
gh version 2.4.0 (2021-12-21)
As the title states, I can't seem to find a way to submit multiple files with a wildcard. Straight from the docs, this sample command fails:
gh release create v1.2.3 ./dist/*.tgz
with the following message:
CreateFile ./dist/*.tgz: The filename, directory name, or volume label syntax is incorrect.
If I run the command, with an individual file, it works such as:
gh release create v1.2.3 dist\Tool-Linux.tgz
It works.
If I open up a Linux terminal, such as git bash, and try the command in there, it works.
Steps to reproduce the behavior
Type this
dir /b dist
View the output
Tool-Linux.tgz
Tool-MacOS.tgz
Tool-Windows.tgz
Type this
gh release create v1.2.3 ./dist/*.tgz
View the output
See error
CreateFile ./dist/*.tgz: The filename, directory name, or volume label syntax is incorrect.
I also tried:
gh release create v1.2.3 .\dist*.tgz
gh release create v1.2.3 dist*.tgz
cd dist
gh release create v1.2.3 *.tgz
with no succcess
Expected vs actual behavior
A successfully submited release tag