Skip to content

Commit

Permalink
fix: 防止把目录也一起打包进去
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfSweet committed Dec 18, 2023
1 parent 692e331 commit 1b8bb14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,15 @@ jobs:
if: runner.os == 'Windows'
run : |
mkdir -p ${{ github.workspace }}/release
7z a -tzip ${{ github.workspace }}/release/AirISP-${{ matrix.target.file_name }}.${{ github.ref_name }}.zip target/${{ matrix.target.name }}/release/AirISP-next.exe
cd target/${{ matrix.target.name }}/release
7z a -tzip ${{ github.workspace }}/release/AirISP-${{ matrix.target.file_name }}.${{ github.ref_name }}.zip AirISP-next.exe
- name: Package
if: runner.os != 'Windows'
run : |
mkdir -p ${{ github.workspace }}/release
zip ${{ github.workspace }}/release/AirISP-${{ matrix.target.file_name }}.${{ github.ref_name }}.zip target/${{ matrix.target.name }}/release/AirISP-next
cd target/${{ matrix.target.name }}/release
zip ${{ github.workspace }}/release/AirISP-${{ matrix.target.file_name }}.${{ github.ref_name }}.zip AirISP-next
- name: Create release
uses: ncipollo/release-action@v1
Expand Down

0 comments on commit 1b8bb14

Please sign in to comment.