Skip to content

Commit

Permalink
Updated cli release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
InoUno committed Feb 21, 2025
1 parent 3727f6a commit 39014f5
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand All @@ -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

0 comments on commit 39014f5

Please sign in to comment.