Skip to content

Commit 90f38ac

Browse files
continuous release: tweaks
1 parent 18ead19 commit 90f38ac

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,14 @@ jobs:
173173
merge-multiple: true
174174

175175
- name: Inspect tmp directory after downloading artifacts
176-
run: ls -alFR tmp/
176+
run: |
177+
ls -alFR tmp/
178+
WHEEL_COUNT=$(find wheels -type f -name "*.whl" | wc -l)
179+
echo "Found $WHEEL_COUNT wheel files"
180+
if [ "$WHEEL_COUNT" -eq 0 ]; then
181+
echo "::error::No wheel files found in wheels directory! Cannot proceed with release."
182+
exit 1
183+
fi
177184
178185
- name: Move and rename wheel files with pattern replacement
179186
run: |
@@ -201,9 +208,11 @@ jobs:
201208
run: ls -alFR wheels/
202209

203210
- uses: actions/checkout@v4
211+
with:
212+
path: repo
204213
- name: Delete old pre-release (if exists)
205214
run: |
206-
gh release delete continuous-release_main --cleanup-tag -y
215+
cd repo && gh release delete continuous-release_main --cleanup-tag -y
207216
env:
208217
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
209218

0 commit comments

Comments
 (0)