Skip to content

Commit e3ea0e1

Browse files
committed
Fix .deb pacakge artifact name conflict
1 parent a6ecfdd commit e3ea0e1

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: Upload .deb package as artifact
7373
uses: actions/upload-artifact@v4
7474
with:
75-
name: deb-package
75+
name: deb-package-${{ steps.setup_vars.outputs.target_arch }}
7676
path: target/debian/*.deb
7777
if: runner.os == 'Linux'
7878
- name: Upload binary to create universal binary
@@ -212,14 +212,16 @@ jobs:
212212
id: get_version
213213
run: |
214214
echo VERSION=${GITHUB_REF#refs/tags/} >> $GITHUB_OUTPUT
215-
echo DEB_NAME=$(basename $(ls ${{ runner.temp }}/deb-package/*.deb | tail -n 1)) >> $GITHUB_OUTPUT
215+
echo DEB_NAME_X64=$(basename $(ls ${{ runner.temp }}/deb-package-x86_64/*.deb | tail -n 1)) >> $GITHUB_OUTPUT
216+
echo DEB_NAME_ARM=$(basename $(ls ${{ runner.temp }}/deb-package-aarch64/*.deb | tail -n 1)) >> $GITHUB_OUTPUT
216217
- name: Upload a Release Asset (ZIP)
217218
uses: softprops/action-gh-release@v1
218219
with:
219220
name: Release ${{ steps.get_version.outputs.VERSION }}
220221
files: |
221222
${{ runner.temp }}/zip-archive-*/zifu-*.zip
222-
${{ runner.temp }}/deb-package/${{ steps.get_version.outputs.DEB_NAME }}
223+
${{ runner.temp }}/deb-package-x86_64/${{ steps.get_version.outputs.DEB_NAME_X64 }}
224+
${{ runner.temp }}/deb-package-aarch64/${{ steps.get_version.outputs.DEB_NAME_ARM }}
223225
- uses: actions/cache@v4
224226
with:
225227
path: |

0 commit comments

Comments
 (0)