Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows release artifacts fail to upload since v5.1.3 #217

Closed
aliesbelik opened this issue May 3, 2023 · 2 comments · Fixed by #218
Closed

Windows release artifacts fail to upload since v5.1.3 #217

aliesbelik opened this issue May 3, 2023 · 2 comments · Fixed by #218
Labels
bug Something isn't working

Comments

@aliesbelik
Copy link
Contributor

The release builds are no longer including the pre-built binaries for Windows (since v5.1.3) due to a breaking change in the softprops/action-gh-release github action used.

Release

  Run softprops/action-gh-release@v1
    with:
      files: D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip
    D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip.sha256
    
      token: ***
    env:
      ASSET_PATH: D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip
      CHECKSUM_PATH: D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip.sha256
      GITHUB_TOKEN: ***
  🤔 Pattern 'D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip' does not match any files.
  🤔 Pattern 'D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip.sha256' does not match any files.
  🤔 D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip,D:\a\jql\jql\jql-v5.1.3-x86_64-pc-windows-msvc.zip.sha256 not include valid file.
  🎉 Release ready at https://github.com/yamafaktory/jql/releases/tag/v5.1.3

(full release workflow log)

Sometime mid November, softprops/action-gh-release@v1 updated the node-glob dependency to 8.0, which changed the behavior of \ to only be an escape character rather than a path separator.

More info here:
softprops/action-gh-release#280

I've tried 2 different workarounds to fix Windows binaries:

  1. pin version of softprops/action-gh-release to v0.1.13 instead of v1:
  uses: softprops/action-gh-release@v0.1.13

until original issue will be fixed;
(tested here)

  1. switch to forward slashes in PATH-variables in Windows case:
Run softprops/action-gh-release@v1
  with:
    files: D:/a/jql/jql/jql-v6.0.7-x86_64-pc-windows-msvc.zip
  D:/a/jql/jql/jql-v6.0.7-x86_64-pc-windows-msvc.zip.sha256
  
    token: ***
  env:
    ASSET_PATH: D:/a/jql/jql/jql-v6.0.7-x86_64-pc-windows-msvc.zip
    CHECKSUM_PATH: D:/a/jql/jql/jql-v6.0.7-x86_64-pc-windows-msvc.zip.sha256
    GITHUB_TOKEN: ***
⬆️ Uploading jql-v6.0.7-x86_64-pc-windows-msvc.zip...
⬆️ Uploading jql-v6.0.7-x86_64-pc-windows-msvc.zip.sha256...
🎉 Release ready at https://github.com/aliesbelik/jql/releases/tag/jql-v6.0.7

(tested here)

and both completed successfully.

Just in case you are not planning to discount Windows binary option. 😨

@yamafaktory yamafaktory added the bug Something isn't working label May 3, 2023
@yamafaktory
Copy link
Owner

yamafaktory commented May 3, 2023

@aliesbelik thanks for the feedback !

I definitely don't want to stop supporting Windows - even though I'm not using it.

The second approach looks good to me, would you mind creating a PR?

@aliesbelik
Copy link
Contributor Author

Sure, happy to contribute.

yamafaktory pushed a commit that referenced this issue May 7, 2023
* fix(win): switch to forward slashes in Windows release

Fixes #217

* fix(release): force release action to fail if files are missing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants