Need to add artifacts to included job

I have a pipeline leveraging a template included from another project.

The template includes the use of the maven-release-plugin and calls the deploy phase. The deploy phase, as expected, calls the maven-site-plugin’s site:site and site:deploy, applying its configuration that produces the necessary public directory. However, the job does not provide an artifacts instruction to pass the public folder.

Assuming that I cannot alter the templated maven release job, how can I extend the provided job to add artifacts and use the artifacts from the provided job in the pages job?

As it stands the pages job deploys to GitLab pages with the recently committed master and the *-SNAPSHOT version. This is not the released version, but the next version under development.