@@ -75,14 +75,14 @@ jobs:
7575 - name : ${{ format('📦 Store binary ({0})', matrix.config) }}
7676 uses : actions/upload-artifact@v4
7777 with :
78- name : ${{ matrix.platform }}-${{ matrix.config }}-release-artifacts
78+ name : artifacts-binary- ${{ matrix.platform }}-${{ matrix.config }}
7979 path : ${{ env.outBinaryPath }}
8080 - name : ${{ format('💎 Build Gem(s) ({0})', matrix.config) }}
8181 run : ./bazel build //gems/scip-ruby --config="${{ env.config }}"
8282 - name : ${{ format('📦 Store Gem(s) to GitHub ({0})', matrix.config) }}
8383 uses : actions/upload-artifact@v4
8484 with :
85- name : ${{ matrix.platform }}-${{ matrix.config }}-release-artifacts
85+ name : artifacts-gem- ${{ matrix.platform }}-${{ matrix.config }}
8686 path : bazel-bin/gems/scip-ruby/*.gem
8787
8888 create-release :
@@ -104,13 +104,17 @@ jobs:
104104 # platforms here.
105105 - name : ' 📥 Download all artifacts'
106106 uses : actions/download-artifact@v4
107+ with :
108+ pattern : artifacts-*
109+ path : release-artifacts
110+ merge-multiple : true
107111 - name : ' 📤 Upload artifacts for release'
108- run : gh release upload "${GITHUB_REF/refs\/tags\//}" ./*- release-artifacts/*
112+ run : gh release upload "${GITHUB_REF/refs\/tags\//}" ./release-artifacts/*
109113 env :
110114 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
111115 # There is also publish-manual.yml in case that is needed for some reason.
112116 - name : ' Publish gems'
113117 run : |
114- for g in ./*- release-artifacts/**.gem; do
118+ for g in ./release-artifacts/**.gem; do
115119 GEM_HOST_API_KEY=${{ secrets.RUBYGEMS_API_KEY }} gem push "$g"
116120 done
0 commit comments