Skip to content

Commit 8d1d2bc

Browse files
committed
CI: upload two build artifacts with release: x64 and x86
1 parent 35d6161 commit 8d1d2bc

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ jobs:
8888
permissions:
8989
contents: write
9090
env:
91-
ARTIFACT_NAME: logreader-Release-x64.7z
91+
ARTIFACT_NAME1: logreader-Release-x86.7z
92+
ARTIFACT_NAME2: logreader-Release-x64.7z
9293

9394
steps:
9495
- name: Create Release
@@ -102,19 +103,34 @@ jobs:
102103
draft: false
103104
prerelease: false
104105

105-
- name: Download Artifact
106+
- name: Download Artifact x86
106107
uses: actions/download-artifact@v2
107108
with:
108-
name: ${{ env.ARTIFACT_NAME }}
109+
name: ${{ env.ARTIFACT_NAME1 }}
110+
path: ./
111+
112+
- name: Download Artifact x64
113+
uses: actions/download-artifact@v2
114+
with:
115+
name: ${{ env.ARTIFACT_NAME2 }}
109116
path: ./
110117

111-
- name: Upload Artifact to Release
112-
id: upload_to_release
118+
- name: Upload Artifact x86 to Release
119+
uses: actions/upload-release-asset@v1
120+
env:
121+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122+
with:
123+
upload_url: ${{ steps.create_release.outputs.upload_url }}
124+
asset_path: ./${{ env.ARTIFACT_NAME1 }}
125+
asset_name: ${{ env.ARTIFACT_NAME1 }}
126+
asset_content_type: application/x-7z-compressed
127+
128+
- name: Upload Artifact x64 to Release
113129
uses: actions/upload-release-asset@v1
114130
env:
115131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
116132
with:
117133
upload_url: ${{ steps.create_release.outputs.upload_url }}
118-
asset_path: ./${{ env.ARTIFACT_NAME }}
119-
asset_name: ${{ env.ARTIFACT_NAME }}
134+
asset_path: ./${{ env.ARTIFACT_NAME2 }}
135+
asset_name: ${{ env.ARTIFACT_NAME2 }}
120136
asset_content_type: application/x-7z-compressed

0 commit comments

Comments
 (0)