Skip to content

Commit

Permalink
Correctly export binaries on release
Browse files Browse the repository at this point in the history
  • Loading branch information
brunojppb committed Jan 2, 2024
1 parent 94e9afb commit 727cc39
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
os: ubuntu-latest
target: x86_64-unknown-linux-musl

# - build: macos
# os: macos-latest
# target: x86_64-apple-darwin
- build: macos
os: macos-latest
target: x86_64-apple-darwin

steps:
- name: Checkout
Expand Down Expand Up @@ -59,17 +59,18 @@ jobs:
mv "target/${{ matrix.target }}/release/$server_binary" "$dirname"
tar -czf "$dirname.tar.gz" "$dirname"
echo "ASSET=$dirname.tar.gz" >> $GITHUB_ENV
echo "SERVER_ASSET=$dirname.tar.gz" >> $GITHUB_ENV
dirname="$gha_binary-${{ env.VERSION }}-${{ matrix.target }}"
mkdir "$dirname"
mv "target/${{ matrix.target }}/release/$gha_binary" "$dirname"
tar -czf "$dirname.tar.gz" "$dirname"
echo "ASSET=$dirname.tar.gz" >> $GITHUB_ENV
echo "GHA_ASSET=$dirname.tar.gz" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
${{ env.ASSET }}
${{ env.SERVER_ASSET }}
${{ env.GHA_ASSET }}

0 comments on commit 727cc39

Please sign in to comment.