Skip to content

Fix GitHub Pages deploy job: artifact expiry on re-run#950

Merged
timschofield merged 2 commits into
masterfrom
copilot/fix-github-actions-deploy-job
Jul 8, 2026
Merged

Fix GitHub Pages deploy job: artifact expiry on re-run#950
timschofield merged 2 commits into
masterfrom
copilot/fix-github-actions-deploy-job

Conversation

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

The dynamic pages-build-deployment workflow's deploy job was being re-triggered days after the build job completed, by which point the github-pages artifact (1-day default retention) had expired — causing deploy to fail with Found 0 artifact(s).

Changes

  • Added .github/workflows/pages.yml: Custom Pages deployment workflow that replaces reliance on the auto-generated dynamic workflow
    • deploy uses needs: build, ensuring it always runs immediately after build in the same workflow invocation — the artifact is guaranteed to exist
    • Triggered on push to master and workflow_dispatch
    • Proper pages: write + id-token: write permissions and concurrency guard to prevent parallel deployments
jobs:
  build:
    steps:
      - uses: actions/checkout@v5
      - uses: actions/configure-pages@v5
      - uses: actions/jekyll-build-pages@v1
      - uses: actions/upload-pages-artifact@v3

  deploy:
    needs: build          # <-- artifact always fresh; never a stale re-run gap
    environment:
      name: github-pages
    steps:
      - uses: actions/deploy-pages@v5

Copilot AI changed the title [WIP] Fix failing GitHub Actions job deploy Fix GitHub Pages deploy job: artifact expiry on re-run Jul 8, 2026
Copilot AI requested a review from timschofield July 8, 2026 15:11
@timschofield timschofield marked this pull request as ready for review July 8, 2026 15:22
@timschofield timschofield merged commit 495d2eb into master Jul 8, 2026
10 checks passed
@timschofield timschofield deleted the copilot/fix-github-actions-deploy-job branch July 8, 2026 15:22
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