Skip to content

Commit

Permalink
Remove archive folder within the zip archive
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuanTao committed Jul 9, 2024
1 parent 4693473 commit 46e3788
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 46e3788

Please sign in to comment.