From e1fa9fa2f131b7c7b1aa66173a24be7faff7c7fe Mon Sep 17 00:00:00 2001 From: Matthew Fluet Date: Mon, 30 Dec 2024 17:23:48 -0500 Subject: [PATCH] Work around symbolic link(s) appearing before destination in archive when unpacking on Windows --- .github/workflows/binary-release-single.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/binary-release-single.yml b/.github/workflows/binary-release-single.yml index 0e58441ff..1c6ff9992 100644 --- a/.github/workflows/binary-release-single.yml +++ b/.github/workflows/binary-release-single.yml @@ -99,7 +99,10 @@ jobs: - name: Download and unpack source release run: | - curl --fail -L https://github.com/${{ github.repository }}/releases/download/on-${{ inputs.mlton-version }}-release/mlton-${{ inputs.mlton-version }}.src.tgz | tar xz --strip-components=1 + curl --fail -s -O -L https://github.com/${{ github.repository }}/releases/download/on-${{ inputs.mlton-version }}-release/mlton-${{ inputs.mlton-version }}.src.tgz + tar xzf mlton-${{ inputs.mlton-version }}.src.tgz --strip-components=1 || true + tar xzf mlton-${{ inputs.mlton-version }}.src.tgz --strip-components=1 + rm mlton-${{ inputs.mlton-version }}.src.tgz - name: Make binary release run: |