Fix uploading artifact for releases #18796
Fixup of #18732
Summary of the issue:
The release failed as we were unable to use a star import to upload release assets to GitHub
https://github.com/nvaccess/nvda/actions/runs/17196535198/job/48780625010
Description of development approach:
Get the name of the file before trying to upload it