Expand variables for `pages.publish` job property
@ksills-dev [noted](https://gitlab.com/groups/gitlab-org/-/epics/10126#note_2166682768) that the `publish` property in the `pages` job configuration does not work with variable expansion: ```yaml pages: stage: deploy image: python:latest script: - mkdocs build --site-dir $BUILD_DIR artifacts: - $BUILD_DIR publish: $BUILD_DIR pages: path_prefix $[[ inputs.pages_prefix | expand_vars ]] ``` To solve this, I think we just need to expand variables for that property, as we do with `path_prefix` in the `pages` method in `ee/app/models/ee/ci/build.rb`: ```rb def pages return {} unless pages_generator? pages_config.tap do |pages_options| pages_options[:path_prefix] = ExpandVariables.expand(pages_options[:path_prefix].to_s, -> { variables.sort_and_expand_all }) end end ```
issue