Skip to content

Commit dd96f1d

Browse files
committed
Upload with both new and old platform names
1 parent 8e17c66 commit dd96f1d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,15 @@ jobs:
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

0 commit comments

Comments
 (0)