@@ -28,31 +28,31 @@ jobs:
2828 env :
2929 TERM : xterm
3030 steps :
31- - name : Create and enter path
31+ - name : Create paths
3232 run : |
33- mkdir -p /tmp/${{ github.sha }}
34- cd /tmp/${{ github.sha }}
33+ mkdir -p /tmp/release-binary-source/ ${{ github.sha }}
34+ mkdir -p /tmp/release-binary-destination /${{ github.sha }}
3535 - name : Download binaries
3636 id : download-artifacts
3737 uses : actions/download-artifact@v4
3838 with :
3939 name : ${{ inputs.download-name }}
4040 merge-multiple : true
41- path : /tmp/${{ github.sha }}
41+ path : /tmp/release-binary-source/ ${{ github.sha }}
4242 pattern : ${{ inputs.download-pattern }}
4343 - name : Mod as needed
4444 run : |
4545 mkdir -p /tmp/release-binary
4646 cp -rf \
47- "/tmp/${{ github.sha }}/${{ inputs.source }}${{ runner.os == 'Windows' && !endsWith(inputs.source, '.exe') && '.exe' || '' }}" \
48- "/tmp/release-binary/${{ inputs.destination }}${{ runner.os == 'Windows' && !endsWith(inputs.destination, '.exe') && '.exe' || '' }}"
49- chmod +x /tmp/release-binary/*
50- ls -lsa /tmp/release-binary
47+ "/tmp/release-binary-source/ ${{ github.sha } }}/${{ inputs.source }}${{ runner.os == 'Windows' && !endsWith(inputs.source, '.exe') && '.exe' || '' }}" \
48+ "/tmp/release-binary-destination/${{ github.sha }} /${{ inputs.destination }}${{ runner.os == 'Windows' && !endsWith(inputs.destination, '.exe') && '.exe' || '' }}"
49+ chmod +x /tmp/release-binary-destination/${{ github.sha }} /*
50+ ls -lsa /tmp/release-binary-destination/${{ github.sha }}
5151 - name : Upload signed binaries
5252 uses : actions/upload-artifact@v4
5353 with :
5454 name : release-binary-${{ inputs.destination }}${{ runner.os == 'Windows' && !endsWith(inputs.destination, '.exe') && '.exe' || '' }}"
5555 overwrite : true
56- path : /tmp/release-binary/${{ inputs.destination }}${{ runner.os == 'Windows' && !endsWith(inputs.destination, '.exe') && '.exe' || '' }}"
56+ path : /tmp/release-binary/${{ github.sha }}/${{ inputs.destination }}${{ runner.os == 'Windows' && !endsWith(inputs.destination, '.exe') && '.exe' || '' }}"
5757 if-no-files-found : error
5858 retention-days : 1
0 commit comments