-
Notifications
You must be signed in to change notification settings - Fork 206
Option to configure build script name #12
Comments
Yes, let's introduce an option for this (maybe called Regarding the missing artifacts, have you set the |
PR created. To be honest, I didn't try the release yet as I still need to test the certificates option. Because for the moment, if you don't release, you can see that the build was successful, but there is no way to download the generated binaries. I hope it was clearer. |
Now I understand. You're right, this isn't currently implemented. Could adding a https://github.com/actions/upload-artifact step after the Electron Builder Action work? If it's really that simple, I don't think this should be included in the action, but added to the README or a docs page. |
Actually, it's not that simple, because you need to know the name of the files generated, depending on the OS, multiple artifacts can be built and currently the upload-artifact action doesn't allow regex or patterns for multiple files. And btw, I think almost everybody would want to be able to download the generated binaries using this action instead of only knowing if it's successful or not. |
I agree on the file renaming. But I don't know if uploading artifacts from within an action is already possible; I'm not sure if the API is already publicly available (see actions/upload-artifact#7 (comment) and https://developer.github.com/v3/actions/artifacts). |
This is tracked by #14 |
Thanks for the action script !
It would be nice to be able to configure the build script name.
For the moment, this is how my scripts are looking, it's pretty hard to get the git hash via a command that works on every system. So I created two build scripts:
"build": "REACT_APP_GIT_COMMIT_HASH=$(git rev-parse --short HEAD) craco build", "build:github": "craco build",
And in the build and release steps of my workflow I added:
env: REACT_APP_GIT_COMMIT_HASH: "${{ github.sha }}"
PS: The script is working fine, but no artifact is generated once the build is complete, is it normal ?
Thanks
The text was updated successfully, but these errors were encountered: