Skip to content

Commit 17bde0b

Browse files
committed
修改编译脚本
1 parent 66b64de commit 17bde0b

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
uses: actions/upload-artifact@v2
5959
with:
6060
name: ${{ matrix.platform }}
61-
path: ${{ github.workspace }}/artifact/
61+
path: ${{ github.workspace }}/artifact/bin
6262

6363
upload-release:
6464
name: Upload Release
@@ -71,7 +71,32 @@ jobs:
7171
- name: Download
7272
uses: actions/download-artifact@v2
7373
- name: Display structure of downloaded files
74-
run: ls -R
74+
run: ls -R
75+
- name: zip win32-x64
76+
uses: TheDoctor0/zip-release@v0.2.1
77+
with:
78+
filename: win32-x64.zip
79+
path: win32-x64
80+
- name: zip win32-x86
81+
uses: TheDoctor0/zip-release@v0.2.1
82+
with:
83+
filename: win32-x86.zip
84+
path: win32-x86
85+
- name: zip linux-x64
86+
uses: TheDoctor0/zip-release@v0.2.1
87+
with:
88+
filename: linux-x64.zip
89+
path: linux-x64
90+
- name: zip darwin-x64
91+
uses: TheDoctor0/zip-release@v0.2.1
92+
with:
93+
filename: darwin-x64.zip
94+
path: darwin-x64
95+
- name: zip darwin-arm64
96+
uses: TheDoctor0/zip-release@v0.2.1
97+
with:
98+
filename: darwin-arm64.zip
99+
path: darwin-arm64
75100
- name: Release
76101
uses: softprops/action-gh-release@v1
77102
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)