You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On implementation's side, sadly I don't have any idea about how to achieve this. Some thoughts then.
Maybe using the files multilines input introducing a separator inline that allow the action split values like name|mime-type|label:
- name: Releaseuses: softprops/action-gh-release@v1if: startsWith(github.ref, 'refs/tags/')with:
files: | Release.txt|text/plain|Changelog binary_win32.exe|application/vnd.microsoft.portable-executable|AwesomeTool for Windows binary_linux| application/zip|AwesomeTool for Linux binary_macos.zip|application/zip|AwesomeTool for MacOS
But it might be kinda delicate. So, maybe switching to an array of objects:
- name: Releaseuses: softprops/action-gh-release@v1if: startsWith(github.ref, 'refs/tags/')with:
files:
- name: Release.txtmimetype: text/plainlabel: Changelog
- name: binary_win32.exemimetype: application/vnd.microsoft.portable-executablelabel: AwesomeTool for Windows
- name: binary_linuxmimetype: application/ziplabel: AwesomeTool for Linux
- name: binary_macos.zipmimetype: application/ziplabel: AwesomeTool for MacOS
The text was updated successfully, but these errors were encountered:
Because names are used in upgrade command to retrieve the matching
operating system release's asset.
I've created an issue in the GitHub Action used to publish to GitHub
Release to set label property:
softprops/action-gh-release#394
Firstly, thanks you for your action which is very useful 🙏.
Referring to the GitHub API documentation related to release publishing, it's possible to customize a label and mime-type (through content-type I guess) per asset: https://docs.github.com/fr/rest/releases/assets?apiVersion=2022-11-28#upload-a-release-asset.
Content-type was supported by the unmaintained https://github.com/actions/upload-release-asset
On implementation's side, sadly I don't have any idea about how to achieve this. Some thoughts then.
Maybe using the
files
multilines input introducing a separator inline that allow the action split values likename|mime-type|label
:But it might be kinda delicate. So, maybe switching to an array of objects:
The text was updated successfully, but these errors were encountered: