Automatically use the "publish" property in the pages job as an artifact
With Gitlab 16.1 we introduced the ability to customize the folder users can publish with GitLab Pages using the publish instruction in the pages job, e.g.:
pages:
stage: deploy
script:
- npx @11ty/eleventy --input=path/to/eleventy/root --output=dist
artifacts:
paths:
- dist
publish: dist
Now, any path that is specified in publish must also be one of the artifacts.paths, which is pretty redundant. That isn't the best user experience. Instead, any value from publish should automatically be treated as an artifact by the Rails Job, so that artifacts can be ommitted in a pages job:
pages:
stage: deploy
script:
- npx @11ty/eleventy --input=path/to/eleventy/root --output=dist
publish: dist
Closed this issue in favour of #519495 (closed)
Edited by Naman Jagdish Gala