This repository has been archived by the owner on Mar 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 189
Upload a github action artifact to LATEST release #52
Comments
You can do it like this:
Look here: StackOverflow |
Yes that's me on stackoverflow... But it's not the perfect answer as it will fail/throw error when there is already an asset with identical name. There is no option for overwrite... |
You could theoretically run a job to delete the asset before the upload. I found an action for this.
|
@roostarreksio Hmm it will work I think So, But It would be much cleaner if this actions does it with an optional argument |
@AtiqGauri, see #22. EDIT Oh, I see you already saw it. Sorry for bothering you... |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I want to upload a artifact to latest release... without creating a new release.
This action rquires a upload_url, which is generally taken from creating a release in previous step with create-release action.
I tried to print output url from create_release-
https://uploads.github.com/repos/atiqg/test/releases/28579698/assets{?name,label}
Then I changed it to direct to latest release-
https://uploads.github.com/repos/atiqg/test/releases/latest/assests
Which oblivously did not work out and thrown this error-
##[error]Multipart form data required
Is there any way I can do this? I don't want to create a new release from actions.
I want to create release normally then action should upload artifact to latest release...
Edit:
So I found solution which was getting latest release upload_url from github api
But this still fails when there is asset already present with identical name...
We need a overwrite option for this
The text was updated successfully, but these errors were encountered: