File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 9292 platform=${platform/windows-2022/windows-latest}
9393 platform=${platform/windows-11-arm/windows-arm64}
9494 platform=${platform/%-arm/-arm64}
95+ echo "old_platform=$platform" >> $GITHUB_OUTPUT
96+
97+ platform=${{ matrix.os }}
98+ platform=${platform/macos-13/darwin-x64}
99+ platform=${platform/macos-14/darwin-arm64}
100+ platform=${platform/%.04/.04-x64}
101+ platform=${platform/%.04-arm/.04-arm64}
102+ platform=${platform/windows-2022/windows-x64}
103+ platform=${platform/windows-11-arm/windows-arm64}
95104 echo "platform=$platform" >> $GITHUB_OUTPUT
96105
97106 # Build
@@ -158,7 +167,12 @@ jobs:
158167 env :
159168 GH_TOKEN : ${{ github.token }}
160169 GH_REPO : ${{ github.repository }}
161- run : gh release upload "${{ needs.release.outputs.tag }}" "jruby-head-${{ steps.platform.outputs.platform }}.tar.gz"
170+ run : |
171+ gh release upload "${{ needs.release.outputs.tag }}" "jruby-head-${{ steps.platform.outputs.platform }}.tar.gz"
172+ if [ "${{ steps.platform.outputs.old_platform }}" != "${{ steps.platform.outputs.platform }}" ]; then
173+ mv "jruby-head-${{ steps.platform.outputs.platform }}.tar.gz" "jruby-head-${{ steps.platform.outputs.old_platform }}.tar.gz"
174+ gh release upload "${{ needs.release.outputs.tag }}" "jruby-head-${{ steps.platform.outputs.old_platform }}.tar.gz"
175+ fi
162176
163177 publish :
164178 name : Publish Release
You can’t perform that action at this time.
0 commit comments