Skip to content
Discussion options

You must be logged in to vote

This seems to be a known intermittent issue with actions/upload-artifact@v4 on Windows runners. Here's what you can do:

Steps to Troubleshoot:

  1. Ensure the path is valid on Windows:

    path: ./dist

    Make sure dist exists at runtime. You can confirm with:

    - run: dir ./dist
  2. Use Absolute Paths:
    GitHub Actions on Windows sometimes has issues with relative paths. Change to:

    path: ${{ github.workspace }}\\dist
  3. Enable Full Debugging:
    Add both:

    env:
      ACTIONS_RUNNER_DEBUG: true
      ACTIONS_STEP_DEBUG: true
  4. Use continue-on-error: false:
    Force the step to fail visibly if upload fails:

    - uses: actions/upload-artifact@v4
      with:
        name: build-output
        path: ${{ github.workspace }}\\dist
      cont…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Crealify
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage Misc General discussions about GitHub Actions that don't fit other found themes.
2 participants