Skip to content

Commit a3e1c13

Browse files
Dchuong03claude
andcommitted
ci: use assetNamePattern for stable download URLs
Replace copy/upload hack with tauri-action's built-in assetNamePattern: "SidStack-[arch][ext]" to produce version-free filenames (SidStack-aarch64.dmg, SidStack-x64.dmg). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b42de2e commit a3e1c13

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,4 @@ jobs:
5555
releaseDraft: true
5656
prerelease: false
5757
args: --target ${{ matrix.target }}
58-
59-
- name: Upload fixed-name DMG
60-
run: |
61-
DMG_FILE=$(find src-tauri/target/${{ matrix.target }}/release/bundle/dmg -name "*.dmg" | head -1)
62-
if [[ "${{ matrix.target }}" == "aarch64-apple-darwin" ]]; then
63-
FIXED_NAME="SidStack_aarch64.dmg"
64-
else
65-
FIXED_NAME="SidStack_x64.dmg"
66-
fi
67-
cp "$DMG_FILE" "$FIXED_NAME"
68-
gh release upload "${{ github.ref_name }}" "$FIXED_NAME" --clobber
69-
env:
70-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+
assetNamePattern: "SidStack-[arch][ext]"

0 commit comments

Comments
 (0)