Skip to content

Commit aa9895e

Browse files
committed
Fix GitHub Actions workflow to upload architecture-specific binaries
- Add rename step to copy binaries with correct asset names - Upload binaries with architecture-specific names (e.g., nexa-x86_64-apple-darwin) - This ensures macOS, Linux, and Windows binaries are properly named in releases
1 parent dbbd3ab commit aa9895e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,16 @@ jobs:
7575
name: ${{ matrix.asset_name }}
7676
path: nexadb-cli-rust/target/${{ matrix.target }}/release/${{ matrix.artifact_name }}
7777

78+
- name: Rename binary
79+
run: |
80+
mkdir -p release-artifacts
81+
cp nexadb-cli-rust/target/${{ matrix.target }}/release/${{ matrix.artifact_name }} release-artifacts/${{ matrix.asset_name }}
82+
shell: bash
83+
7884
- name: Release
7985
uses: softprops/action-gh-release@v1
8086
if: startsWith(github.ref, 'refs/tags/')
8187
with:
82-
files: nexadb-cli-rust/target/${{ matrix.target }}/release/${{ matrix.artifact_name }}
88+
files: release-artifacts/${{ matrix.asset_name }}
8389
env:
8490
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)