Rewrite release-assets action#68
Rewrite release-assets action#68cdce8p wants to merge 1 commit intohome-assistant:masterfrom cdce8p:rewrite-release-assets
Conversation
|
Maybe this has been suggested/asked earlier before, so sorry if I raise duplicates: But why are we re-inventing the wheel here? |
Most actions, at least those I found and the one you linked, will create new releases instead of enabling the upload of files to existing ones. There is one: https://github.com/actions/upload-release-asset, but as @ludeeus rightfully pointed out in #61 (comment) it's archived and unmaintained. |
|
It takes the existing release into account: https://github.com/softprops/action-gh-release/blob/master/src/github.ts#L215 |
Fair enough, it works! Guess I should have done more research beforehand, would have saved me quite some time 😅 - name: Upload release assets
uses: softprops/action-gh-release@v1
with:
files: dist/*Example log output I'll update the Frontend PR. Once that is merged, I'll close the actions ones and remove the part which has already been merged. |
|
No longer needed. See #69 |
Replaces #67
After the recent feedback, I've rewritten the
release-assetsaction to be much versatile. E.g. it's now much easier to upload multiple files and reuse it in different repos.Example job step for the frontend release action
Example log output
/CC: @ludeeus @balloob