Skip to content

Commit

Permalink
.github/workflows: Fix dist path in release.yml
Browse files Browse the repository at this point in the history
During the release process, the distribution files
are currently built in the `sdk/dist/` directory,
however the PyPI action expects them in the top-
level `dist` directory.
Therefore we adapt the build path in the workflow.
  • Loading branch information
s-heppner committed Dec 11, 2024
1 parent 9f3296b commit eaa59e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ jobs:
python -m pip install --upgrade pip
pip install build
- name: Create source and wheel dist
# (2024-12-11, s-heppner)
# The PyPI Action expects the dist files in a toplevel `/dist` directory,
# so we have to specify this as output directory here.
run: |
python -m build
python -m build --outdir ../dist
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit eaa59e3

Please sign in to comment.