github-action-publish-binaries
github-action-publish-binaries copied to clipboard
Does not work on windows
The following error shows:
Run skx/github-action-publish-binaries@master
with:
args: win-amd64-smartcontroler*
env:
pythonLocation: C:\hostedtoolcache\windows\Python\3.10.1\x64
GITHUB_TOKEN: ***
Error: Container action is only supported on Linux
Other actions work on linux and windows. Is it possible to make this work on windows too?
I'm not sure what would be required to be honest.
If somebody were to give me a pull-request I'd merge it, but I think otherwise it would probably not be a priority for me, sorry!
Based on the code in the repository, I made this set of commands that work on Windows. The ubuntu code runs find on macOS as is.
iwr -useb get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin
scoop update
scoop install curl
scoop install jq
$env:RELEASE_ID = jq --raw-output ".release.id" "${env:GITHUB_EVENT_PATH}"
curl.exe -X "POST" -H "Authorization: token ${{secrets.GITHUB_TOKEN}}" --upload-file "${{github.workspace}}/build/Justly-0.1.0-win64.exe" --header "Content-Type:application/octet-stream" "https://uploads.github.com/repos/${env:GITHUB_REPOSITORY}/releases/${env:RELEASE_ID}/assets?name=Justly-0.1.0-win64.exe"