Skip to content

Commit

Permalink
dynamic binary path
Browse files Browse the repository at this point in the history
  • Loading branch information
hitchhooker committed Dec 2, 2024
1 parent 434bc3f commit f57b75e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Release binaries

on:
push:
Expand All @@ -18,12 +18,10 @@ jobs:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
name: linux-x86_64
binary_path: target/release/peckr
binary_name: peckr-linux-x86_64
- os: macos-latest
target: x86_64-apple-darwin
name: macos-x86_64
binary_path: target/release/peckr
binary_name: peckr-macos-x86_64

steps:
Expand All @@ -40,7 +38,7 @@ jobs:
- name: Prepare Binary
shell: bash
run: |
cp ${{ matrix.binary_path }} ${{ matrix.binary_name }}
cp target/${{ matrix.target }}/release/peckr ${{ matrix.binary_name }}
- name: Upload Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit f57b75e

Please sign in to comment.