Skip to content

Fix deploy: prevent duplicate github-pages artifact on workflow re-run - #9

Merged
KevinPy merged 2 commits into
developfrom
copilot/fix-deploy-github-actions-job
Jul 3, 2026
Merged

Fix deploy: prevent duplicate github-pages artifact on workflow re-run#9
KevinPy merged 2 commits into
developfrom
copilot/fix-deploy-github-actions-job

Conversation

Copilot AI commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

On partial workflow re-runs, the github-pages artifact from the first run persists. A second upload then creates a duplicate, causing actions/deploy-pages@v4 to fail with Multiple artifacts named "github-pages" were unexpectedly found for this workflow run. Artifact count is 2.

Change

  • Added overwrite: true to actions/upload-pages-artifact@v3 in deploy.yml so re-runs replace the existing artifact rather than creating a second one.
- uses: actions/upload-pages-artifact@v3
  with:
    path: app/dist/
    overwrite: true

Copilot AI changed the title [WIP] Fix failing GitHub Actions job deploy Fix deploy: prevent duplicate github-pages artifact on workflow re-run Jul 3, 2026
Copilot AI requested a review from KevinPy July 3, 2026 16:31
@KevinPy
KevinPy marked this pull request as ready for review July 3, 2026 16:43
@KevinPy
KevinPy merged commit 071ef20 into develop Jul 3, 2026
2 checks passed
@KevinPy
KevinPy deleted the copilot/fix-deploy-github-actions-job branch July 3, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants