Skip to content

[DAR-7748] fix: use bash shell for env var in build workflow - #23

Merged
umbertoDifa merged 1 commit into
masterfrom
fix/windows-build-env
Apr 9, 2026
Merged

umbertoDifa merged 1 commit into
masterfrom
fix/windows-build-env

Conversation

@umbertoDifa

@umbertoDifa umbertoDifa commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

DAR-7748
Fixes two CI issues discovered during the v0.2.0 release:

  1. build.yml: The Set env step uses bash parameter expansion (${GITHUB_REF#refs/*/}) which doesn't work in PowerShell (Windows default shell). Adding shell: bash ensures the step works on all platforms. This caused Windows wheel artifacts to not be uploaded.

  2. deploy.yml: The dawidd6/action-download-artifact@v6 downloads each matching artifact into its own subdirectory. The pypa/gh-action-pypi-publish action then fails because it encounters directories instead of .whl/.tar.gz files. Fixed by downloading to dist-raw/ and flattening into dist/. Also removed unsupported merge_multiple parameter.

Test plan

  • After merge: delete v0.2.0 tag+release, re-tag, re-release
  • Verify Windows wheel artifacts are uploaded
  • Verify deploy workflow publishes to PyPI successfully

- build.yml: Add `shell: bash` to Set env step so bash parameter
  expansion works on Windows (was silently failing in PowerShell)
- deploy.yml: Download artifacts to dist-raw/ then flatten into dist/
  so pypi-publish doesn't choke on subdirectories. Remove unsupported
  merge_multiple parameter from dawidd6/action-download-artifact.

Made-with: Cursor
@umbertoDifa
umbertoDifa force-pushed the fix/windows-build-env branch from 9573bba to c857ee7 Compare April 9, 2026 08:27
@umbertoDifa umbertoDifa changed the title fix: use bash shell for env var in build workflow [DAR-7748] fix: use bash shell for env var in build workflow Apr 9, 2026
@mickeypash
mickeypash self-requested a review April 9, 2026 09:04
@umbertoDifa
umbertoDifa merged commit cfe8108 into master Apr 9, 2026
4 checks passed
@umbertoDifa
umbertoDifa deleted the fix/windows-build-env branch April 9, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants