actions / actions/deploy-pages

Feature request: add option to delete artifact after deploy

Open
#435 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
953
Forks
143
Avg merge
35m
Merged PRs (30d)
1

Description

Hello !
Would you accept a PR to automatically delete the artifact after it has been used to create the pages deployment ? This is useful when you want to minimize your used actions storage.

Currently I maintain a custom script to do this: https://github.com/WerWolv/ImHex/blob/12fc7fc0ceca9d8515288f4197aa2b285292ceda/.github/workflows/build.yml#L1278 and I think it would help others to upstream the behavior in this action

Would you accept a PR from me implementing this ?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the deploy-pages action entry points and the referenced .github/workflows/build.yml example around line 1278. Compare the existing custom cleanup flow with the action's deployment flow, then verify that an opt-in deletion option removes the artifact only after a successful Pages deployment.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
ci-cd, devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.