Skip to content

Commit d30d256

Browse files
committed
fix(ci): skip the generated Simple Index folder as an artifact, and use only individual distribution files
Refs: b3a61b9 Signed-off-by: Jens Troeger <jens.troeger@light-speed.de>
1 parent cab172a commit d30d256

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/_build.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,18 @@ jobs:
128128
echo "Digest of artifacts is $DIGEST."
129129
echo "artifacts-sha256=$DIGEST" >> "$GITHUB_OUTPUT"
130130
131-
# For now only generate artifacts for the specified OS and Python version in env variables.
132-
# Currently reusable workflows do not support setting strategy property from the caller workflow.
131+
# For now only generate artifacts for the specified OS and Python version in env
132+
# variables. Currently reusable workflows do not support setting strategy property
133+
# from the caller workflow. Furthermore, add only top-level files as artifacts;
134+
# do not copy the generated simple-index/ folder.
133135
- name: Upload the package artifact for debugging and release
134136
if: matrix.os == env.ARTIFACT_OS && matrix.python == env.ARTIFACT_PYTHON
135137
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
136138
with:
137139
name: artifact-${{ matrix.os }}-python-${{ matrix.python }}
138-
path: dist
140+
path: |
141+
dist/*.*
142+
!dist/simple-index
139143
if-no-files-found: error
140144
retention-days: 7
141145

0 commit comments

Comments
 (0)