Skip to content

Commit

Permalink
fix actions release workflow 🤞
Browse files Browse the repository at this point in the history
  • Loading branch information
jpeddicord committed Oct 22, 2024
1 parent 988b57f commit 36c1b35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,26 @@ jobs:
ls target/${{ matrix.target }}
ls target/${{ matrix.target }}/release
strip target/${{ matrix.target }}/release/askalono
working-directory: cli

### Upload

- name: Zip release binary
if: runner.os != 'macOS'
run: 7z a askalono.zip askalono${{ matrix.suffix }}
working-directory: target/${{ matrix.target }}/release
working-directory: cli/target/${{ matrix.target }}/release

- name: macOS - Zip release binary
if: runner.os == 'macOS'
run: zip -r -X askalono.zip askalono${{ matrix.suffix }}
working-directory: target/${{ matrix.target }}/release
working-directory: cli/target/${{ matrix.target }}/release

- name: Upload release binary
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./target/${{ matrix.target }}/release/askalono.zip
asset_path: ./cli/target/${{ matrix.target }}/release/askalono.zip
asset_name: askalono-${{ runner.os }}.zip
asset_content_type: application/octet-stream

0 comments on commit 36c1b35

Please sign in to comment.