Skip to content

Commit

Permalink
Fix release to distinguish slsa slsa files
Browse files Browse the repository at this point in the history
  • Loading branch information
PKopel committed Nov 19, 2023
1 parent 6eaf411 commit 0955b26
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,18 @@ jobs:
echo "os_name=windows" | Out-File -FilePath $env:GITHUB_ENV -Append
echo "EXT=.exe" | Out-File -FilePath $env:GITHUB_ENV -Append
- name: Build binary
run: cargo build --release

- name: Set binary path name
if: matrix.os != 'windows-latest'
run: echo "BINARY_PATH=./target/release/fig" >> $GITHUB_ENV
run: echo "BINARY_PATH=./target/release/fig-amd64-${{ env.os_name }}" >> $GITHUB_ENV

- name: Set binary path name
if: matrix.os == 'windows-latest'
run: echo "BINARY_PATH=./target/release/fig.exe" | Out-File -FilePath $env:GITHUB_ENV -Append
run: echo "BINARY_PATH=./target/release/fig-amd64-windows.exe" | Out-File -FilePath $env:GITHUB_ENV -Append

- name: Build binary
run: |
cargo build --release
mv ./target/release/fig${{ env.EXT }} ${{ env.BINARY_PATH }}
- name: Compress binary
uses: svenstaro/upx-action@2.3.0
Expand Down

0 comments on commit 0955b26

Please sign in to comment.