Closed dmerejkowsky closed 4 years ago
Update I think I could create an artifact containing the upload URL in the first job and then use it in the second job, but it seems like a hack ...
I'd suggest taking a look at https://github.com/softprops/action-gh-release. We currently use it for the release process on Starship. No upload_url needed. Just provide the build artifact and it does the rest.
Exactly what I was looking for :) Thanks!
Let's close this
Hello there,
I'm trying to port CI of TankerHQ/dmenv from travis to GitHub actions, but I'm stuck at the publishing workflow :/
When a tag is pushed, I want to:
dmenv.exe
on Windows,dmenv-osx
anddmenv-linux
on the 3 matching operating systemsHere's what I've tried
The problem is that
upload-assets
needs anupload-url
and thatcreate-release
can only be run once.If I skip it, there's no upload_url and the artifact cannot be upload. If I don't skip it, there's an error and only one over 3 artifacts gets uploaded.
I've also tried to run
create-release
is a separate job, but then I don't know how to access the upload_url in the second job.Any ideas?