-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove archive folder within the zip archive
- Loading branch information
1 parent
4693473
commit 46e3788
Showing
1 changed file
with
3 additions
and
9 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 |
---|---|---|
|
@@ -114,11 +114,8 @@ jobs: | |
use-cross: true | ||
command: build | ||
args: --release --target ${{ matrix.platform.target }} -p dora-cli | ||
- name: "Archive Linux" | ||
run: | | ||
mkdir ${{ matrix.platform.target }} | ||
cp target/${{ matrix.platform.target }}/release/dora ${{ matrix.platform.target }}/dora | ||
zip -r ${{ matrix.platform.target }}.zip ${{ matrix.platform.target }} | ||
- name: "Archive" | ||
run: zip -r ${{ matrix.platform.target }}.zip target/${{ matrix.platform.target }}/release/dora | ||
|
||
- name: "Upload asset" | ||
uses: actions/[email protected] | ||
|
@@ -154,10 +151,7 @@ jobs: | |
- name: Create Archive (Windows) | ||
if: runner.os == 'Windows' | ||
shell: powershell | ||
run: | | ||
New-Item -Path archive -ItemType Directory | ||
Copy-Item target/release/dora.exe -Destination archive/dora.exe | ||
Compress-Archive -Path archive\* -DestinationPath archive.zip | ||
run: Compress-Archive -Path target/release/dora.exe -DestinationPath archive.zip | ||
|
||
- name: "Upload release asset" | ||
uses: actions/[email protected] | ||
|