Skip to content

Commit 8d87a1f

Browse files
committed
ci: make release step idempotent and untrack technical report
1 parent feacd50 commit 8d87a1f

3 files changed

Lines changed: 12 additions & 247 deletions

File tree

.github/workflows/build-wheels.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,15 @@ jobs:
114114
pattern: wheel-*
115115
merge-multiple: true
116116

117-
- name: Create GitHub Release
117+
- name: Upsert GitHub Release
118118
env:
119119
GH_TOKEN: ${{ github.token }}
120120
TAG_NAME: ${{ github.ref_name }}
121-
run: gh release create "$TAG_NAME" --generate-notes dist_fixed/*.whl
121+
run: |
122+
if gh release view "$TAG_NAME" >/dev/null 2>&1; then
123+
echo "Release $TAG_NAME already exists, uploading artifacts with --clobber"
124+
gh release upload "$TAG_NAME" dist_fixed/*.whl --clobber
125+
else
126+
echo "Creating release $TAG_NAME"
127+
gh release create "$TAG_NAME" --generate-notes dist_fixed/*.whl
128+
fi

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ dmPython_trace.log
3131

3232
# Testing
3333
.pytest_cache/
34+
35+
# Local technical notes
36+
TECHNICAL_REPORT.md

TECHNICAL_REPORT.md

Lines changed: 0 additions & 245 deletions
This file was deleted.

0 commit comments

Comments
 (0)