Skip to content

fix(ci): strictly filter GitHub Release assets by extension#75

Merged
d0dg3r merged 1 commit intomainfrom
fix/github-release-asset-upload
Mar 24, 2026
Merged

fix(ci): strictly filter GitHub Release assets by extension#75
d0dg3r merged 1 commit intomainfrom
fix/github-release-asset-upload

Conversation

@d0dg3r
Copy link
Owner

@d0dg3r d0dg3r commented Mar 24, 2026

The previous release job failed because the softprops/action-gh-release was attempting to upload directories and loose files from the unpacked Tauri/makepkg artifacts (e.g., src-tauri/ or deb/data/), which caused Not Found errors.

This PR restricts the uploaded files in release.yml exclusively to installer extensions (.AppImage, .deb, .dmg, .msi, .exe, .pkg.tar.zst), ensuring a clean and reliable release process without polluting the assets tab.

- The `actions/upload-artifact@v4` glob merges produced artifacts (including unpacked directories like `src-tauri` or `deb`).
- Previously, the `release-artifacts/**` wildcard attempted to upload these directories or their loose contents to GitHub Releases, causing `Not Found` and upload errors.
- Now strictly filtering to only upload actual installer extensions (`.AppImage`, `.deb`, `.dmg`, `.msi`, `.exe`, `.pkg.tar.zst`).
- Bumped version to 0.1.0-beta.17 to trigger a clean release build.
Copilot AI review requested due to automatic review settings March 24, 2026 19:54
@d0dg3r d0dg3r merged commit 6417648 into main Mar 24, 2026
Copy link
Contributor

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 aims to make GitHub Release publishing more reliable by preventing the release workflow from attempting to upload unpacked artifact directories/loose files, restricting uploads to installer-like artifact extensions.

Changes:

  • Restrict .github/workflows/release.yml release asset globs to specific file extensions (instead of release-artifacts/**).
  • Bump apps/desktop/package.json version to 0.1.0-beta.17.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
apps/desktop/package.json Updates the desktop app npm package version.
.github/workflows/release.yml Narrows GitHub Release upload globs to avoid uploading directories/loose files from artifacts.

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

{
"name": "desktop",
"version": "0.1.0-beta.16",
"version": "0.1.0-beta.17",
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

The PR bumps apps/desktop/package.json to 0.1.0-beta.17, but apps/desktop/src-tauri/tauri.conf.json and apps/desktop/src-tauri/Cargo.toml are still 0.1.0-beta.11, which creates version drift for local builds. Either update all three version sources together (per docs/releases.md guidance), or drop the package.json version bump from this CI-focused PR if it’s not intentional.

Suggested change
"version": "0.1.0-beta.17",
"version": "0.1.0-beta.11",

Copilot uses AI. Check for mistakes.
Comment on lines +365 to +368
release-artifacts/**/*.AppImage
release-artifacts/**/*.deb
release-artifacts/**/*.rpm
release-artifacts/**/*.dmg
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

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

The PR description says release assets are filtered exclusively to .AppImage, .deb, .dmg, .msi, .exe, and .pkg.tar.zst, but the workflow also includes **/*.rpm. Please either update the PR description to include .rpm (if intended) or remove the .rpm glob to match the stated behavior.

Copilot uses AI. Check for mistakes.
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