Skip to content

Commit

Permalink
取消压缩文件
Browse files Browse the repository at this point in the history
  • Loading branch information
cnwxi committed Aug 28, 2024
1 parent 7d3a71f commit 85d6960
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,18 @@ jobs:
Get-ChildItem -Path dist | Rename-Item -NewName { '${{ runner.os }}_' + $_.Name }
shell: pwsh

- name: Create zip archive (Windows)
if: matrix.os == 'windows-latest'
run: |
Compress-Archive -Path dist\* -DestinationPath "dist\${{ runner.os }}_all.zip"
shell: pwsh
# - name: Create zip archive (Windows)
# if: matrix.os == 'windows-latest'
# run: |
# Compress-Archive -Path dist\* -DestinationPath "dist\${{ runner.os }}_all.zip"
# shell: pwsh

- name: Create tar.gz archive (Linux and macOS)
if: matrix.os != 'windows-latest'
run: |
tar -czvf "${{ runner.os }}_all.tar.gz" -C dist $(ls dist)
mv "${{ runner.os }}_all.tar.gz" dist/
shell: bash
# - name: Create tar.gz archive (Linux and macOS)
# if: matrix.os != 'windows-latest'
# run: |
# tar -czvf "${{ runner.os }}_all.tar.gz" -C dist $(ls dist)
# mv "${{ runner.os }}_all.tar.gz" dist/
# shell: bash

- name: Create Release
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 85d6960

Please sign in to comment.