Update release workflow to use GH CLI instead of deprecated action#9466
Update release workflow to use GH CLI instead of deprecated action#9466PikachuEXE wants to merge 2 commits into
Conversation
…ase upload Release workflow now also only needs tag instead of release ID (hidden inside HTML source code)
|
We cannot use the GitHub CLI for this as it uses the wrong mimetypes for the assets and the maintainers have explicitly said that they will not allow the caller to customise the mimetype as they consider that a security risk cli/cli#11795. If you want to get rid of the deprecated action you will need to do it some other way, such as using curl to upload them, I was going to write a bash script to do it with curl so we could get rid of all the boiler plate of defining a separate step for each asset, but I haven't got around to doing that yet. Additionally please don't use GitHub Actions templating in shell commands, instead set the values as environment variables using |
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
|
Conflicts have been resolved. A maintainer will review the pull request shortly. |
|
You go ahead with |
Pull Request Type
Related issue
This PR includes #9460 so that assets can be tested properly
That PR should be merged first
Description
Spotted deprecation message in last run - https://github.com/FreeTubeApp/FreeTube/actions/runs/29556083929
Found
gh release upload- https://github.com/marketplace/actions/publish-release (bottom, example included)Doc for command & env var:
No rename/upload with different name option yet so rename using powershell needed (found in https://stackoverflow.com/questions/70515210/can-i-use-a-github-action-to-rename-a-file
Screenshots
Build log screenshot (only the changed part

Testing
Download assets (all versions, archive and installer) for each OS to see if app can be extracted/installed and run
https://github.com/PikachuEXE/FreeTube/releases/tag/v0.25.0-beta-release-test-202607201605
Assets uploaded by https://github.com/PikachuEXE/FreeTube/actions/runs/29726731446
In addition you might want to test #9444 & #9460
Desktop
Additional context
Already tested macos x64 + arm64 on m1 mac w/ macOS 15.7.7