Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Upload Artifacts for Github Pages deploy fails #2909

Closed
micahchoo opened this issue Dec 13, 2024 · 4 comments
Closed

[Bug]: Upload Artifacts for Github Pages deploy fails #2909

micahchoo opened this issue Dec 13, 2024 · 4 comments

Comments

@micahchoo
Copy link

Describe the bug

The github pages deploy is failing at the upload artifacts page
Archive artifact
tar: build/DataViz-for-Indian-Cities: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
Error: Process completed with exit code 2.

Steps to Reproduce

use the deploy.yml from the documentation
no secrets

Logs

Run npm run sources
> [email protected] sources
> evidence sources
- Loading plugins & sources
✔ Loading plugins & sources
-----
  [Processing] CMP
- Processing...
  Bus_Fleet_Statistics ✔ Finished, wrote 10 rows.
- Processing...
  Pimpri_Chinchwad_Traffic_at_Locations ✔ Finished, wrote 15 rows.
- Processing...
  Road_Accident_Statistics ✔ Finished, wrote 8 rows.
- Processing...
  Vehicle_Registrations_by_Type_and_Year ✔ Finished, wrote 396 rows.
-----
  [Processing] needful_things
- Processing...
  needful_things ⚠ No results returned.
- Processing...
  orders ✔ Finished, wrote 10000 rows.
-----
  Evaluated sources, saving manifest
  ✅ Done!
> [email protected] build
> evidence build
undefined
undefined
Run npm run preview to preview your production build locally.
> Using @sveltejs/adapter-static
  Wrote site to "./build"done
Build complete --> ./build 
0s
Run actions/upload-pages-artifact@v3
Run echo ::group::Archive artifact
Archive artifact
  tar: build/DataViz-for-Indian-Cities: Cannot open: No such file or directory
  tar: Error is not recoverable: exiting now
  Error: Process completed with exit code 2.

System Info

Severity

serious, but I can work around it

Additional Information, or Workarounds

No response

@micahchoo micahchoo added bug Something isn't working to-review Evidence team to review labels Dec 13, 2024
@archiewood
Copy link
Member

archiewood commented Dec 13, 2024

You need to add the base path to the build command in package.json

https://github.com/micahchoo/DataViz-for-Indian-Cities/blob/master/package.json

Copy link
Member

@archiewood archiewood removed to-review Evidence team to review bug Something isn't working labels Dec 13, 2024
@archiewood
Copy link
Member

alternatively you can modify your github workflow to upload the artifact from /build not /build/${{ repo_name }}

@micahchoo
Copy link
Author

Ahh I did not look there, sorry and thank you!

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

No branches or pull requests

2 participants