Skip to content

Commit

Permalink
fix additional filending on compressed artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
gdgunnars committed Apr 29, 2024
1 parent 7f3e3aa commit 2a7b32a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/on-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ jobs:
- name: Build archive
shell: bash
run: |
# Replace with the name of your binary
binary_name="rcon"
dirname="$binary_name-${{ env.VERSION }}-${{ matrix.target }}"
mkdir "$dirname"
if [ "${{ matrix.os }}" = "windows-latest" ]; then
mv "target/${{ matrix.target }}/release/$binary_name.exe" "$dirname"
else
ls -alh "target/${{ matrix.target }}/release/"
mv "target/${{ matrix.target }}/release/$binary_name" "$dirname"
fi
Expand All @@ -69,4 +69,4 @@ jobs:
- name: Upload Release Asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ env.VERSION }} ${{env.ASSET}}.zip
run: gh release upload ${{ env.VERSION }} ${{env.ASSET}}

0 comments on commit 2a7b32a

Please sign in to comment.