Skip to content

Commit

Permalink
fix: 修改文件命名方式,在其它平台上使用tar.gz打包
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfSweet committed Dec 31, 2023
1 parent 2c69bdf commit 5115113
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,20 @@ jobs:
run : |
mkdir -p ${{ github.workspace }}/release
cd target/${{ matrix.target.name }}/release
7z a -tzip ${{ github.workspace }}/release/AirISP-${{ matrix.target.file_name }}-${{ github.ref_name }}.zip AirISP-next.exe
7z a -tzip ${{ github.workspace }}/release/AirISP-${{ github.ref_name }}-${{ matrix.target.file_name }}.zip AirISP-next.exe
- name: Package
if: runner.os != 'Windows'
run : |
mkdir -p ${{ github.workspace }}/release
cd target/${{ matrix.target.name }}/release
zip ${{ github.workspace }}/release/AirISP-${{ matrix.target.file_name }}-${{ github.ref_name }}.zip AirISP-next
chmod +x AirISP-next
tar zcvf ${{ github.workspace }}/release/AirISP-${{ github.ref_name }}-${{ matrix.target.file_name }}.tar.gz AirISP-next
- name: Create release
uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: "${{ github.workspace }}/release/AirISP-${{ matrix.target.file_name }}-${{ github.ref_name }}.zip"
artifacts: "${{ github.workspace }}/release/AirISP-${{ github.ref_name }}-${{ matrix.target.file_name }}.zip"


0 comments on commit 5115113

Please sign in to comment.