Deploy a jar file

As part of my deploy pipeline, I need to copy a jar file to a certain JBoss location on an on-prem server.

Is there an example of this type of practice?

For example the jar file could be located like so:

Tbh I’m a little confused over:

But since I somehow got the jar file on a packages URL, I guess I’m supposed to use the packages API?

The other thing I find very confusing is that Packages API | GitLab mentions <your_access_token>. I’m planning to deploy using the Gitlab runner, so shouldn’t the access token already be in place by the runner? Or do I need to manually create one and add to variables regardless?