Skip to content

Commit 8fafb27

Browse files
authored
Fix publish job (#4880)
1 parent 2ddd610 commit 8fafb27

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ jobs:
2727
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
2828
with:
2929
name: artifact-sdist
30-
path: dist/*.tar.gz
30+
path: lib/dist/*.tar.gz
3131
- name: Build wheel
3232
run: python -m build --wheel lib/
3333
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3434
with:
3535
name: artifact-wheel
36-
path: dist/*.whl
36+
path: lib/dist/*.whl
3737

3838
publish_package:
3939
name: Publish package
@@ -47,7 +47,7 @@ jobs:
4747
- name: Download artifacts
4848
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
4949
with:
50-
path: dist
50+
path: lib/dist
5151
pattern: artifact-*
5252
merge-multiple: true
5353
# to determine where to publish the package distribution to PyPI or TestPyPI
@@ -62,16 +62,19 @@ jobs:
6262
uses: svenstaro/upload-release-action@81c65b7cd4de9b2570615ce3aad67a41de5b1a13 # v2
6363
with:
6464
repo_token: ${{ secrets.GITHUB_TOKEN }}
65-
file: dist/*
65+
file: lib/dist/*
6666
tag: ${{ github.ref }}
6767
overwrite: true
6868
file_glob: true
6969
- name: Publish package distributions to PyPI
7070
if: ${{ steps.check-tag.outputs.match != '' }}
7171
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
72+
with:
73+
packages-dir: lib/dist
7274
- name: Publish package distributions to TestPyPI
7375
if: ${{ steps.check-tag.outputs.match == '' }}
7476
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4
7577
with:
7678
repository-url: https://test.pypi.org/legacy/
7779
verbose: true
80+
packages-dir: lib/dist

0 commit comments

Comments
 (0)