Skip to content

Fix deploy reruns by retaining github-pages artifact in render workflow#2

Merged
datejada merged 2 commits into
mainfrom
copilot/fix-deploy-job-failure-again
Jun 10, 2026
Merged

Fix deploy reruns by retaining github-pages artifact in render workflow#2
datejada merged 2 commits into
mainfrom
copilot/fix-deploy-job-failure-again

Conversation

Copilot AI commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

The deploy GitHub Actions job was failing on reruns because actions/deploy-pages could not find the github-pages artifact from the earlier render job attempt. This PR updates artifact retention so delayed deploy attempts can still access the rendered site bundle.

  • Root cause

    • deploy depends on an artifact produced in render, but the artifact was not retained long enough for delayed/retried deploy attempts.
  • Workflow change

    • Updated .github/workflows/render-book.yml in the Upload Pages artifact step to explicitly retain the artifact for 7 days.
  • Behavioral impact

    • Deploy retries/reruns within the retention window can fetch the same github-pages artifact without requiring a fresh render.
- name: Upload Pages artifact
  if: github.event_name == 'push' && github.ref == 'refs/heads/main'
  uses: actions/upload-pages-artifact@v3
  with:
    path: _site
    retention-days: 7

Copilot AI changed the title [WIP] Fix failing GitHub Actions job deploy Fix deploy reruns by retaining github-pages artifact in render workflow Jun 10, 2026
Copilot AI requested a review from datejada June 10, 2026 09:47
@datejada datejada marked this pull request as ready for review June 10, 2026 10:04
@datejada datejada merged commit 50bb1c1 into main Jun 10, 2026
4 checks passed
@datejada datejada deleted the copilot/fix-deploy-job-failure-again branch June 10, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants