deploy-pages icon indicating copy to clipboard operation
deploy-pages copied to clipboard

Add support for artifact_id input and improve artifact selection for …

Open morningstarxcdcode opened this issue 6 months ago • 0 comments

improvements:

  1. Adds a new input artifact_id to allow explicit deployment by artifact ID, addressing ambiguity when multiple artifacts share the same name.

  2. If artifact_id is provided, it is used for both deployment and as the unique build version, improving reliability for reruns and special workflow events.

  3. Updates documentation (README.md and action.yml) to describe the new input and clarify its behavior.

  4. Adds a warning in the documentation about file modification dates being overridden by GitHub Pages.

  5. Adds and passes tests for the new logic.

Usage Example:

  • uses: actions/deploy-pages@v4 with: artifact_id: ${{ steps.upload.outputs.artifact-id }}

If artifact_id is set, it overrides artifact_name and is used for both deployment and as the build version.

pls review and let me know

morningstarxcdcode avatar Jun 03 '25 03:06 morningstarxcdcode