Skip to content

Commit

Permalink
fix: ci release keep targets as name
Browse files Browse the repository at this point in the history
Signed-off-by: Martichou <[email protected]>
  • Loading branch information
Martichou committed Sep 22, 2024
1 parent 2b0689c commit b1539f4
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/upload-to-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,18 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.job.target }}
- uses: Swatinem/rust-cache@v2

- name: Build
run: cargo build --release --all-features

- name: Add file to release
uses: softprops/action-gh-release@v2
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
files: |
target/release/speculare-server
fail_on_unmatched_files: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/release/speculare-server
asset_name: speculare-server-${{ github.ref_name }}-${{ matrix.job.target }}
tag: ${{ github.ref }}
overwrite: true

0 comments on commit b1539f4

Please sign in to comment.