Repository navigation
fix(release): split build matrix + single upload job (closes #242) - #251
Merged
Merged
Conversation
[email protected] with releaseDraft + strategy.matrix races 4 jobs to create the draft, producing duplicate releases (one Draft with all assets, one published 'Latest' with only the Windows portable + latest.json). v0.4.0 shipped this way; Linux/macOS users got no auto-update. Restructure: build matrix now builds only (tauri-action in build-only mode: omit tagName/releaseName/releaseId) and uploads bundles + .sig via actions/upload-artifact@v7. A new single ubuntu upload job downloads all artifacts and creates the draft release ONCE via softprops/action-gh-release@v2. generate-update-manifest now needs:[upload] so gh release download sees the release. Closes #242
EVWorth
force-pushed
the
fix/release-yml-race-condition-v2
branch
from
July 22, 2026 01:32
800c176 to
6138039
Compare
3 tasks done
EVWorth
added a commit
that referenced
this pull request
Jul 23, 2026
Issue 243 asks to capture the createUpdaterArtifacts gotcha in RELEASING.md. The gotcha already exists as gotcha #2 (PR #241 added the env var). What's missing is the cross-link from .opencode/AGENTS.md and an update to the example to reflect the renamed Build bundles (no release) step after #251. - docs/RELEASING.md: rename step in gotcha #2 example from Build and publish to Build bundles (no release), trim the trailing '...' - .opencode/AGENTS.md: add pitfall #13 referencing the gotcha, and a 'read RELEASING.md gotchas 1-5' note in the Release Flow section Closes #243
EVWorth
added a commit
that referenced
this pull request
Jul 23, 2026
Issue 243 asks to capture the createUpdaterArtifacts gotcha in RELEASING.md. The gotcha already exists as gotcha #2 (PR #241 added the env var). What's missing is the cross-link from .opencode/AGENTS.md and an update to the example to reflect the renamed Build bundles (no release) step after #251. - docs/RELEASING.md: rename step in gotcha #2 example from Build and publish to Build bundles (no release), trim the trailing '...' - .opencode/AGENTS.md: add pitfall #13 referencing the gotcha, and a 'read RELEASING.md gotchas 1-5' note in the Release Flow section Closes #243
EVWorth
added a commit
that referenced
this pull request
Jul 23, 2026
…252) Issue 243 asks to capture the createUpdaterArtifacts gotcha in RELEASING.md. The gotcha already exists as gotcha #2 (PR #241 added the env var). What's missing is the cross-link from .opencode/AGENTS.md and an update to the example to reflect the renamed Build bundles (no release) step after #251. - docs/RELEASING.md: rename step in gotcha #2 example from Build and publish to Build bundles (no release), trim the trailing '...' - .opencode/AGENTS.md: add pitfall #13 referencing the gotcha, and a 'read RELEASING.md gotchas 1-5' note in the Release Flow section Closes #243
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the [email protected] race that produced duplicate GitHub Releases in the v0.4.0 run.
Before: All 4 build jobs in
strategy.matrixrantauri-actionwithreleaseDraft: true. Each tried to look up the draft by tag, found nothing (it didn't exist yet), raced to create it, first one wins, the other 3 either created a SECOND draft or silently lost their assets. v0.4.0 shipped with one Draft (17 assets, never published) and one Latest (2 assets, partial, picked by GitHub).After:
buildmatrix runstauri-actionin build-only mode (omittagName,releaseName,releaseIdper the action's README) and uploads bundles +.sigviaactions/upload-artifact@v7. A new singleuploadjob (ubuntu-22.04) downloads all build artifacts, thensoftprops/action-gh-release@v2creates the draft release ONCE and uploads every asset. No race because only one job touches the GitHub Releases API.generate-update-manifestnowneeds: [upload]sogh release downloadruns after the release exists.Changes
.github/workflows/release.yml:artifact_suffix(linux-x86_64, windows-x86_64, macos-aarch64, macos-x86_64) so each upload has a unique name.tauri-actionwithouttagName.sqlpilot.exetoSQLPilot.exe(public name preserved).src-tauri/target/release/bundle/+SQLPilot.exeper platform.uploadjob: downloads everything, thensoftprops/action-gh-release@v2creates the draft + uploads all asset globs (fail_on_unmatched_files: trueas a sanity check).needs: [build]→needs: [upload].docs/RELEASING.md: gotcha Fix: sidebar schema selection, explain tab, autocomplete, run/explain flow #1 marked FIXED. Recovery steps retained for historical reference. Checklist updated: now expects theuploadjob in the success set and an explicit "exactly one release, draft=true" check.Acceptance criteria (per #242)
release.ymlno longer produces duplicate release candidates withstrategy.matrixv0.4.0-rc.test) and confirm exactly ONE release for that tag with assets from all 4 platforms — recommend doing this on a throwaway branch before merging tomaindocs/RELEASING.md(gotcha Fix: sidebar schema selection, explain tab, autocomplete, run/explain flow #1 marked FIXED, verification procedure spelled out)Out of scope
generate-update-manifestre-signs bundles vianpx tauri signer signeven though tauri already signed them at build time (createUpdaterArtifacts: true). Redundant but unchanged; pre-existing gotcha feat: VS Code-style custom title bar, icon redesign, v0.1.2 #2 territory.Test plan
v0.4.0-rc.test) on this branch.gh api repos/EVWorth/sqlpilot/releases | jq '.[] | select(.tag_name == "v0.4.0-rc.test")'should show exactly one release, draft=true, with 17+ assets.Closes #242