Skip to content

Commit 5391d2a

Browse files
1 parent e6e5306 commit 5391d2a

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.github/workflows/release-dry-run.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ jobs:
8181
- name: ${{ format('📦 Store binary ({0})', matrix.config) }}
8282
uses: actions/upload-artifact@v4
8383
with:
84-
name: ${{ matrix.platform }}-${{ matrix.config }}-release-artifacts
84+
name: artifacts-binary-${{ matrix.platform }}-${{ matrix.config }}
8585
path: ${{ env.outBinaryPath }}
8686
retention-days: 2
8787
- name: ${{ format('💎 Build Gem(s) ({0})', matrix.config) }}
8888
run: ./bazel build //gems/scip-ruby --config="${{ env.config }}"
8989
- name: ${{ format('📦 Store Gem(s) to GitHub ({0})', matrix.config) }}
9090
uses: actions/upload-artifact@v4
9191
with:
92-
name: ${{ matrix.platform }}-${{ matrix.config }}-release-artifacts
92+
name: artifacts-gem-${{ matrix.platform }}-${{ matrix.config }}
9393
path: bazel-bin/gems/scip-ruby/*.gem
9494
retention-days: 2
9595

@@ -110,5 +110,9 @@ jobs:
110110
echo "Create release: tag=$TAG, title=$TITLE"
111111
- name: '📥 Download all artifacts'
112112
uses: actions/download-artifact@v4
113+
with:
114+
pattern: artifacts-*
115+
path: release-artifacts
116+
merge-multiple: true
113117
- name: '📤 List artifacts for release'
114-
run: ls ./*-release-artifacts/**
118+
run: ls ./release-artifacts/**

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)