@@ -53,12 +53,15 @@ jobs:
5353
5454 - name : Package binary into a ZIP file
5555 run : |
56- zip another-redis-benchmark-${{ matrix.goos }}-${{ matrix.goarch }}.zip another-redis-benchmark-${{ matrix.goos }}-${{ matrix.goarch }}
56+ zip -j another-redis-benchmark-${{ matrix.goos }}-${{ matrix.goarch }}.zip another-redis-benchmark-${{ matrix.goos }}-${{ matrix.goarch }}
57+
58+ - name : List generated files
59+ run : ls -lh another-redis-benchmark-*.zip
5760
5861 - name : Upload ZIP artifact
5962 uses : actions/upload-artifact@v4
6063 with :
61- name : another-redis-benchmark-${{ matrix.goos }}-${{ matrix.goarch }}.zip
64+ name : another-redis-benchmark-${{ matrix.goos }}-${{ matrix.goarch }}
6265 path : ./another-redis-benchmark-${{ matrix.goos }}-${{ matrix.goarch }}.zip
6366
6467 release :
7275
7376 - name : Download all artifacts
7477 uses : actions/download-artifact@v4
78+ with :
79+ pattern : another-redis-benchmark-*
80+ path : my-artifact
7581
7682 - name : Create GitHub Release
7783 id : create_release
@@ -84,12 +90,14 @@ jobs:
8490 body : ${{ needs.version.outputs.changelog }}
8591 generateReleaseNotes : true
8692
93+ - name : List downloaded files
94+ run : ls -lh my-artifact
95+
8796 - name : Upload all release artifacts
88- uses : actions/upload-release-asset@v1
89- with :
90- upload_url : ${{ steps.create_release.outputs.upload_url }}
91- asset_path : another-redis-benchmark-*.zip
92- asset_name : another-redis-benchmark-${{ matrix.goos }}-${{ matrix.goarch }}.zip
93- asset_content_type : application/zip
97+ run : |
98+ for file in my-artifact/*.zip; do
99+ echo "Uploading $file"
100+ gh release upload ${{ needs.version.outputs.app_version }} "$file"
101+ done
94102 env :
95103 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments