Fix template injection in build-release action
Move action inputs to environment variables and use shell variable
expansion instead of direct template expansion to prevent potential
code injection.
See: https://docs.zizmor.sh/audits/#template-injection