From 39014f5506036dad44c723a25c9e940074b06a43 Mon Sep 17 00:00:00 2001 From: InoUno Date: Fri, 21 Feb 2025 13:58:10 +0100 Subject: [PATCH] Updated cli release workflow --- .github/workflows/release.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0608d7..d2d832d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: asset_name: xi-tinkerer-cli-linux-amd64 - os: windows-latest artifact_name: xi-tinkerer-cli.exe - asset_name: xi-tinkerer-cli-windows-amd64 + asset_name: xi-tinkerer-cli.exe - os: macos-latest artifact_name: xi-tinkerer-cli asset_name: xi-tinkerer-cli-macos-amd64 @@ -74,6 +74,7 @@ jobs: run: pnpm install - name: Release tauri app + id: tauri-release uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -93,10 +94,13 @@ jobs: - name: Build release run: cargo build --release - - name: Upload binaries to release - uses: svenstaro/upload-release-action@v2 + - name: Upload CLI binary to release + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: target/release/${{ matrix.artifact_name }} + upload_url: ${{ steps.tauri-release.outputs.releaseUploadUrl }} + asset_path: target/release/${{ matrix.artifact_name }} asset_name: ${{ matrix.asset_name }} - tag: ${{ github.ref }} + asset_content_type: application/octet-stream