Skip to content

Commit c5709aa

Browse files
committed
修改build
1 parent 4a9c3eb commit c5709aa

File tree

1 file changed

+10
-82
lines changed

1 file changed

+10
-82
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Upload x86
2020
uses: actions/[email protected]
2121
with:
22-
name: x86
22+
name: win32-x86
2323
path: x86/install/bin
2424

2525
- name: Build x64
@@ -32,7 +32,7 @@ jobs:
3232
- name: Upload x64
3333
uses: actions/[email protected]
3434
with:
35-
name: x64
35+
name: win32-x64
3636
path: x64/install/bin
3737

3838
build-other:
@@ -68,83 +68,10 @@ jobs:
6868
env:
6969
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7070
steps:
71-
- name: Create release
72-
id: create_release
73-
uses: actions/create-release@master
74-
with:
75-
tag_name: ${{ github.ref }}
76-
release_name: ${{ github.ref }}
77-
body: ${{ github.ref }}
78-
draft: true
79-
prerelease: true
80-
81-
- name: Download Windows-x86
82-
uses: actions/[email protected]
83-
with:
84-
name: x86
85-
path: artifact/x86
86-
87-
- name: Zip x86
88-
uses: TheDoctor0/[email protected]
89-
with:
90-
91-
path: artifact/x86
92-
93-
- name: Upload x86
94-
uses: actions/[email protected]
95-
with:
96-
upload_url: ${{ steps.create_release.outputs.upload_url }}
97-
asset_path: [email protected]
98-
asset_name: [email protected]
99-
asset_content_type: application/tar+gzip
100-
101-
- name: Download Windows-x64
102-
uses: actions/[email protected]
103-
with:
104-
name: x64
105-
path: artifact/x64
106-
107-
- name: Zip x64
108-
uses: TheDoctor0/[email protected]
109-
with:
110-
111-
path: artifact/x64
112-
113-
- name: Upload x64
114-
uses: actions/[email protected]
115-
with:
116-
upload_url: ${{ steps.create_release.outputs.upload_url }}
117-
asset_path: [email protected]
118-
asset_name: [email protected]
119-
asset_content_type: application/tar+gzip
120-
121-
- name: Download so
122-
uses: actions/[email protected]
123-
with:
124-
name: emmy_core.so
125-
path: artifact
126-
127-
- name: Upload so
128-
uses: actions/[email protected]
129-
with:
130-
upload_url: ${{ steps.create_release.outputs.upload_url }}
131-
asset_path: artifact/emmy_core.so
132-
asset_name: emmy_core.so
133-
asset_content_type: application/gzip
134-
135-
- name: Download dylib
136-
uses: actions/[email protected]
137-
with:
138-
name: emmy_core.dylib
139-
path: artifact
140-
141-
- name: Upload dylib
142-
uses: actions/[email protected]
143-
with:
144-
upload_url: ${{ steps.create_release.outputs.upload_url }}
145-
asset_path: artifact/emmy_core.dylib
146-
asset_name: emmy_core.dylib
147-
asset_content_type: application/gzip
71+
- name: Download
72+
uses: actions/download-artifact@v2
73+
- name: Display structure of downloaded files
74+
run: ls -R
14875
- name: Release
14976
uses: softprops/action-gh-release@v1
15077
if: startsWith(github.ref, 'refs/tags/')
@@ -153,8 +80,9 @@ jobs:
15380
draft: false
15481
generate_release_notes: true
15582
files: |
156-
linux-x64.zip
157-
darwin-x64.zip
158-
darwin-arm64.zip
15983
win32-x64.zip
84+
win32-x86.zip
85+
darwin-arm64.zip
86+
darwin-x64.zip
87+
linux-x64.zip
16088
token: ${{ secrets.RELEASE }}

0 commit comments

Comments
 (0)