-
Notifications
You must be signed in to change notification settings - Fork 39
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
[Maint] fix the download and deploy part of workflow #380
[Maint] fix the download and deploy part of workflow #380
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think all of that is reasonable, but testing would take a fake deployment in a branch. I can try doing that tomorrow.
Ok - looking at napari/napari-sphinx-theme#160 I figured it out: OK! That actually explains the failure: https://github.com/napari/docs/actions/runs/8462011401/job/23182687077 We don't use Line 29 in 54ec184
Meaning the artifact we are trying to upload here does not exist:
So we need to update the workflow to upload |
But I think it should still be the correct path to upload, because the Lines 29 to 30 in 54ec184
This was changed in the unify-docs PR: #348 So with -M, from the docs:
the outputdir is In that Unify PR I also fixed the CircleCI workflow: Lines 46 to 51 in 54ec184
So that works correctly -- you can see in the action that ran for this PR. That gives me some confidence that this should work as well. So the only question is setting the paths correct for the download here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM from my limited knowledge. It doesn't seem like the trailing slash isn't strictly needed in:
path: docs/docs/_build/html/
https://github.com/actions/upload-artifact?tab=readme-ov-file#upload-an-entire-directory
but works fine either way. Thanks for fixing this!
References and relevant issues
The second part, deployment, of the new unified workflow is failing:
Error: Unable to download artifact(s): Artifact not found for name: docs
https://github.com/napari/docs/actions/runs/8457634044/job/23170039408
If you check the timestamps it's running concurrently with the
build&upload
job, so the artifact probably isn't there to download.Additionally, I think the
publish_dir
is wrong, because it's the dir the docs were built into, but now the docs are being downloaded as an artifact, so the artifact should be used.Description
In this PR:
needs
Download & Deploy
to reduce confusion with the previous job.path
in for theactions/download-artifact@v4
step is spurious, so I delete it.publish_dir
of the deploy action to use the downloaded artifact