Skip to content

Conversation

@cpisciotta
Copy link
Owner

Replaces actions/upload-release-asset with gh CLI commands for uploading release assets. Simplifies release creation and asset upload steps, removes unused get-version action, and updates asset naming and upload logic for macOS and Linux builds.

Replaces actions/upload-release-asset with gh CLI commands for uploading release assets. Simplifies release creation and asset upload steps, removes unused get-version action, and updates asset naming and upload logic for macOS and Linux builds.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR modernizes the release workflow by replacing the deprecated actions/create-release and actions/upload-release-asset actions with the GitHub CLI (gh). It simplifies the workflow by eliminating the need for upload URLs and directly using gh commands for release creation and asset uploads.

Key changes:

  • Replaces GitHub Actions with gh release CLI commands for creating releases and uploading assets
  • Removes the upload_url output and get-version-action dependency
  • Adds a checkout step to the create_release job to enable gh CLI usage

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

uses: actions/[email protected]
run: |
TAG="${{ needs.create_release.outputs.tag_name }}"
cp release/xcbeautify.zip "xcbeautify-${TAG}-universal-apple-macosx.zip"
Copy link

Copilot AI Nov 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The macOS job uses cp to copy files before uploading (lines 46, 53, 60), while the Linux job uses mv to rename the file (line 83). This is inconsistent. Consider using mv for all jobs to avoid leaving duplicate files in the workspace after the upload completes.

Copilot uses AI. Check for mistakes.
@codecov
Copy link

codecov bot commented Nov 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.71%. Comparing base (393f409) to head (8a34bfa).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #444   +/-   ##
=======================================
  Coverage   91.71%   91.71%           
=======================================
  Files          17       17           
  Lines        2125     2125           
=======================================
  Hits         1949     1949           
  Misses        176      176           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cpisciotta
Copy link
Owner Author

@copilot Review the latest changes

Copy link

Copilot AI commented Nov 22, 2025

@cpisciotta I've opened a new pull request, #445, to work on those changes. Once the pull request is ready, I'll request review from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants