How to compile release Version?

Now I can only build the snapshot version, how to build the release version
The package name is something like "elasticsearch-7.17.22-SNAPSHOT-no-jdk-linux-x86_64.tar.gz" thinks all..

Why do you want to build it instead of just downloading it?