Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(release): replace assets on same-tag reruns (MUL-7683) (#8812)

Multica Evecf2b84708dc6
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 965fb9bdbb..448dc861b2 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -12,6 +12,12 @@ permissions:
contents: write
packages: write
+# Deleting and recreating a tag can enqueue multiple runs for the same ref.
+# Serialize them so publishers never race while replacing same-name assets.
+concurrency:
+ group: release-${{ github.ref }}
+ cancel-in-progress: false
+
jobs:
verify:
runs-on: ubuntu-latest
@@ -445,6 +451,9 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# electron-builder's GitHub publisher reads this:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ # Same-tag reruns must also replace Desktop assets after the
+ # publisher's default two-hour safety window has elapsed.
+ EP_GH_IGNORE_TIME: "true"
# Disable code signing on Linux/Windows for now — the public
# release is unsigned for these platforms, the CLI carries the
# trust boundary. Set CSC_LINK in repo secrets to enable
diff --git a/.goreleaser.yml b/.goreleaser.yml
index a34979a1a7..d0b861f1c2 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -2,6 +2,12 @@ version: 2
project_name: multica
+release:
+ # GitHub rejects duplicate asset names with 422. On a same-tag rerun,
+ # replace only the matching CLI artifact and retry the upload; unrelated
+ # release assets (for example manually published macOS builds) stay intact.
+ replace_existing_artifacts: true
+
builds:
- id: multica
main: ./cmd/multica