Skip to content

Commit

Permalink
改为zip压缩
Browse files Browse the repository at this point in the history
  • Loading branch information
lvyahui8 committed Oct 21, 2024
1 parent 6063257 commit 2a1da9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ jobs:

# 把二进制文件打包成压缩文件
- name: Prepare Packaging
run: cd example && tar zcvf ellyn-example-${{ matrix.goos }}-${{ matrix.goarch }}.tgz example_app${{ matrix.ext }}
run: cd example && zip -v ellyn-example-${{ matrix.goos }}-${{ matrix.goarch }}.zip example_app${{ matrix.ext }}

- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: ellyn-example-${{ matrix.goos }}-${{ matrix.goarch }}.tgz
path: example/ellyn-example-${{ matrix.goos }}-${{ matrix.goarch }}.tgz
name: ellyn-example-${{ matrix.goos }}-${{ matrix.goarch }}.zip
path: example/ellyn-example-${{ matrix.goos }}-${{ matrix.goarch }}.zip
# 发布release版本
- name: Release version
uses: ncipollo/release-action@v1
Expand All @@ -63,5 +63,5 @@ jobs:
artifactErrorsFailBuild: true
removeArtifacts: false
replacesArtifacts: false
artifacts: example/ellyn-example-${{ matrix.goos }}-${{ matrix.goarch }}.tgz
artifacts: example/ellyn-example-${{ matrix.goos }}-${{ matrix.goarch }}.zip
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2a1da9d

Please sign in to comment.