Skip to content

Conversation

Copy link

Copilot AI commented Oct 21, 2025

  • Identify the root cause of the deployment failure
  • Fix the typo in the checkout action reference
  • Validate the workflow file syntax
  • Verify the fix is minimal and correct

Issue Found:
The build-website.yml workflow had a typo on line 12: uses: /actions/checkout@... included an invalid leading slash. GitHub Actions syntax requires action references in the format owner/repo@ref without a leading slash.

Root Cause:
When the checkout action failed:

  1. The build job couldn't check out the repository code
  2. The build failed before creating the dist/ directory
  3. The artifact upload step never ran
  4. The deploy job failed with "No artifacts named 'github-pages' were found"

Solution Applied:
Removed the leading slash from /actions/checkout to make it actions/checkout. This allows the workflow to:

  • Successfully check out the code
  • Build the Astro site
  • Upload the "github-pages" artifact
  • Deploy to GitHub Pages successfully

Changes Made:

  • Fixed line 12 in .github/workflows/build-website.yml: Changed /actions/checkout@... to actions/checkout@...
Original prompt

Annotations
3 errors
Deploy to GitHub Pages
Error: No artifacts named "github-pages" were found for this workflow run. Ensure artifacts are uploaded with actions/upload-artifact@v4 or later.
Deploy to GitHub Pages
Error: No artifacts named "github-pages" were found for this workflow run. Ensure artifacts are uploaded with actions/upload-artifact@v4 or later.
at getArtifactMetadata (/home/runner/work/_actions/actions/deploy-pages/d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e/src/internal/api-client.js:85:1)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Deployment.create (/home/runner/work/_actions/actions/deploy-pages/d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e/src/internal/deployment.js:66:1)
at main (/home/runner/work/_actions/actions/deploy-pages/d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e/src/index.js:30:1)
Deploy to GitHub Pages
Fetching artifact metadata failed. Is githubstatus.com reporting issues with API requests, Pages, or Actions? Please re-run the deployment at a later time.

help me understand why the deploy is not able to find . do i have to download the artifact? i thought that happened by default Skip to content
Navigation Menu
all-contributors
all-contributors.github.io

Type / to search
Code
Issues
92
Pull requests
9
Discussions
Actions
Projects
Security
1
Insights
Settings
Deploy Site to GitHub Pages
chore(deps): bump astro from 5.13.5 to 5.14.4 (#950) #24
Jobs
Run details
Workflow file for this run
.github/workflows/build-website.yml at e0c43b3
name: Deploy Site to GitHub Pages

on:
push:
branches:
- main
jobs:
build:
name: Build Astro site
runs-on: ubuntu-latest
steps:
- uses: /actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- uses: actions/setup-node@a0853c2 # v5.0.0
with:
node-version: 23
cache: npm

  - name: Install dependencies
    run: npm ci
  - name: Build website
    run: |
      npm run build
      ls dist/
  - name: Upload Build Artifact
    uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
    with:
      path: dist/

deploy:
name: Deploy to GitHub Pages
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db901 # v4.0.5

it seems to now be able tof ind the artifact. do i have to manually download it too?


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

@netlify
Copy link

netlify bot commented Oct 21, 2025

Deploy Preview for all-contributors ready!

Name Link
🔨 Latest commit 912ee1b
🔍 Latest deploy log https://app.netlify.com/projects/all-contributors/deploys/68f6cfd8395102000854cdb7
😎 Deploy Preview https://deploy-preview-954--all-contributors.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@lwasser
Copy link
Member

lwasser commented Oct 21, 2025

i have no idea why this happened. closing it.

@lwasser lwasser closed this Oct 21, 2025
Copilot AI requested a review from lwasser October 21, 2025 00:15
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