Skip to content

Commit 13d4100

Browse files
committed
Fix gh CLI compatibility - remove unsupported --generate-notes flag
1 parent 264bce8 commit 13d4100

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/prebuild.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,18 +270,25 @@ jobs:
270270
gh release upload "${{ github.event.inputs.release_tag }}" "$file" --clobber
271271
done
272272
273-
# Update release notes with auto-generated changelog
274-
echo "Updating release notes..."
275-
gh release edit "${{ github.event.inputs.release_tag }}" --generate-notes
273+
# Note: Auto-generated notes only work when creating new releases
274+
echo "Prebuilds uploaded to existing release (release notes unchanged)"
276275
277276
else
278277
# Create new release with auto-generated notes and upload files
279278
echo "Creating new release with auto-generated notes..."
280279
cd upload-staging
281-
gh release create "${{ github.event.inputs.release_tag }}" \
280+
if gh release create "${{ github.event.inputs.release_tag }}" \
282281
--title "Release ${{ github.event.inputs.release_tag }}" \
283282
--generate-notes \
284-
*.tar.gz
283+
*.tar.gz 2>/dev/null; then
284+
echo "Release created with auto-generated notes"
285+
else
286+
echo "Auto-generated notes not supported, creating release without notes..."
287+
gh release create "${{ github.event.inputs.release_tag }}" \
288+
--title "Release ${{ github.event.inputs.release_tag }}" \
289+
--notes "Release ${{ github.event.inputs.release_tag }}" \
290+
*.tar.gz
291+
fi
285292
fi
286293
287294
echo "Upload complete! Uploaded $FILE_COUNT prebuilds."

0 commit comments

Comments
 (0)