-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
988b57f
commit 36c1b35
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |