@@ -153,57 +153,96 @@ jobs:
153153 p2_path : ${{ steps.s3-paths.outputs.p2_path }}
154154 version : ${{ steps.project-version.outputs.version }}
155155
156+ sign-win-distros :
157+ needs : [ eclipse-distro-build ]
158+ runs-on : ubuntu-latest
159+ steps :
160+ - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
161+ with :
162+ sparse-checkout : |
163+ .github
164+ - name : Download Win Zips from S3 for Signing
165+ run : |
166+ rm -f spring-tool-suite-4*win*.zip*
167+ rm -f spring-tool-suite-4*win*.self-extracting.jar*
168+ ls
169+ aws s3 mv s3://$AWS_S3_BUCKET/sts4-distro-ci-temp/${{ needs.eclipse-distro-build.outputs.id }} . --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --exclude "*/*"
170+ - name : Sign EXE within zip files
171+ id : sign
172+ run : |
173+ files=`ls spring-tool-suite-4*win*.zip`
174+ for file in $files
175+ do
176+ ${{ github.workspace }}/.github/scripts/sign-exe-in-zip-file.sh $file ${{ github.workspace }}/.github/scripts/sign-exe.sh ${{ github.workspace }}/.github/scripts/self-extracting-jar-creator.jar ${{ github.run_id }}
177+ done
178+ - name : Update Win zip/jar on S3
179+ id : update-s3
180+ run : |
181+ dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }}
182+ echo "Processing S3 update..."
183+ ls spring-tool-suite-4*win*
184+ echo "Removing old win zip and self extracting jar files from S3..."
185+ aws s3 rm s3://$AWS_S3_BUCKET/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --include "spring-tool-suite-4*win*.self-extracting.jar*" --exclude "*/*"
186+ echo "Uploading new win zip and self extracting jar files to S3..."
187+ aws s3 mv . s3://$AWS_S3_BUCKET/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --include "spring-tool-suite-4*win*.self-extracting.jar*" --exclude "*/*" --no-progress
188+ - name : Update Nightly Distro Downloads page
189+ if : ${{ inputs.build_type == 'snapshot' }}
190+ run : |
191+ dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }}
192+ eclipse_profile=${{ inputs.eclipse_profile }}
193+ eclipse_version=${eclipse_profile:0:2}.${eclipse_profile:2}
194+ ${{ github.workspace }}/.github/scripts/update-distro-download-page.sh $dist_path $eclipse_version ${{ inputs.build_type }} $AWS_S3_BUCKET $DOWNLOAD_URL_ROOT
156195
157- sign-win-distros :
158- needs : [ eclipse-distro-build ]
159- runs-on : [ self-hosted, Linux ]
160- steps :
161- - uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
162- with :
163- sparse-checkout : |
164- .github
165- - name : Download Win Zips from S3 for Signing
166- run : |
167- rm -f spring-tool-suite-4*win*.zip*
168- rm -f spring-tool-suite-4*win*.self-extracting.jar*
169- ls
170- aws s3 mv s3://$AWS_S3_BUCKET/sts4-distro-ci-temp/${{ needs.eclipse-distro-build.outputs.id }} . --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --exclude "*/*"
171- - name : Sign EXE within zip files
172- id : sign
173- env :
174- SSH_KEY : ~/.ssh/id_rsa
175- SSH_USER : signer
176- run : |
177- files=`ls spring-tool-suite-4*win*.zip`
178- for file in $files
179- do
180- ${{ github.workspace }}/.github/scripts/sign-exe-in-zip-file.sh $file ${{ github.workspace }}/.github/scripts/sign-exe.sh ${{ github.workspace }}/.github/scripts/self-extracting-jar-creator.jar ${{ needs.eclipse-distro-build.outputs.id }}
181- done
182- - name : Update Win zip/jar on S3
183- id : update-s3
184- run : |
185- dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }}
186- echo "Processing S3 update..."
187- ls spring-tool-suite-4*win*
188- echo "Removing old win zip and self extracting jar files from S3..."
189- aws s3 rm s3://$AWS_S3_BUCKET/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --include "spring-tool-suite-4*win*.self-extracting.jar*" --exclude "*/*"
190- echo "Uploading new win zip and self extracting jar files to S3..."
191- aws s3 mv . s3://$AWS_S3_BUCKET/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --include "spring-tool-suite-4*win*.self-extracting.jar*" --exclude "*/*" --no-progress
192- - name : Update Nightly Distro Downloads page
193- if : ${{ inputs.build_type == 'snapshot' }}
194- run : |
195- dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }}
196- eclipse_profile=${{ inputs.eclipse_profile }}
197- eclipse_version=${eclipse_profile:0:2}.${eclipse_profile:2}
198- ${{ github.workspace }}/.github/scripts/update-distro-download-page.sh $dist_path $eclipse_version ${{ inputs.build_type }} $AWS_S3_BUCKET $DOWNLOAD_URL_ROOT
199- - name : Cleanup
200- if : ${{ always() }}
201- env :
202- SSH_KEY : ~/.ssh/id_rsa
203- SSH_USER : signer
204- run : |
205- ssh -i $SSH_KEY [email protected] -- rm -rf /opt/bamboo/${{ needs.eclipse-distro-build.outputs.id }} 206- rm -rf *spring-tool-suite-4*win*
196+ # sign-win-distros:
197+ # needs: [ eclipse-distro-build ]
198+ # runs-on: [ self-hosted, Linux ]
199+ # steps:
200+ # - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
201+ # with:
202+ # sparse-checkout: |
203+ # .github
204+ # - name: Download Win Zips from S3 for Signing
205+ # run: |
206+ # rm -f spring-tool-suite-4*win*.zip*
207+ # rm -f spring-tool-suite-4*win*.self-extracting.jar*
208+ # ls
209+ # aws s3 mv s3://$AWS_S3_BUCKET/sts4-distro-ci-temp/${{ needs.eclipse-distro-build.outputs.id }} . --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --exclude "*/*"
210+ # - name: Sign EXE within zip files
211+ # id: sign
212+ # env:
213+ # SSH_KEY: ~/.ssh/id_rsa
214+ # SSH_USER: signer
215+ # run: |
216+ # files=`ls spring-tool-suite-4*win*.zip`
217+ # for file in $files
218+ # do
219+ # ${{ github.workspace }}/.github/scripts/sign-exe-in-zip-file.sh $file ${{ github.workspace }}/.github/scripts/sign-exe.sh ${{ github.workspace }}/.github/scripts/self-extracting-jar-creator.jar ${{ needs.eclipse-distro-build.outputs.id }}
220+ # done
221+ # - name: Update Win zip/jar on S3
222+ # id: update-s3
223+ # run: |
224+ # dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }}
225+ # echo "Processing S3 update..."
226+ # ls spring-tool-suite-4*win*
227+ # echo "Removing old win zip and self extracting jar files from S3..."
228+ # aws s3 rm s3://$AWS_S3_BUCKET/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --include "spring-tool-suite-4*win*.self-extracting.jar*" --exclude "*/*"
229+ # echo "Uploading new win zip and self extracting jar files to S3..."
230+ # aws s3 mv . s3://$AWS_S3_BUCKET/${dist_path} --recursive --exclude "*" --include "spring-tool-suite-4*win*.zip*" --include "spring-tool-suite-4*win*.self-extracting.jar*" --exclude "*/*" --no-progress
231+ # - name: Update Nightly Distro Downloads page
232+ # if: ${{ inputs.build_type == 'snapshot' }}
233+ # run: |
234+ # dist_path=${{ needs.eclipse-distro-build.outputs.dist_path }}
235+ # eclipse_profile=${{ inputs.eclipse_profile }}
236+ # eclipse_version=${eclipse_profile:0:2}.${eclipse_profile:2}
237+ # ${{ github.workspace }}/.github/scripts/update-distro-download-page.sh $dist_path $eclipse_version ${{ inputs.build_type }} $AWS_S3_BUCKET $DOWNLOAD_URL_ROOT
238+ # - name: Cleanup
239+ # if: ${{ always() }}
240+ # env:
241+ # SSH_KEY: ~/.ssh/id_rsa
242+ # SSH_USER: signer
243+ # run: |
244+ # ssh -i $SSH_KEY [email protected] -- rm -rf /opt/bamboo/${{ needs.eclipse-distro-build.outputs.id }}245+ # rm -rf *spring-tool-suite-4*win*
207246
208247 sign-osx-distros :
209248 needs : [ eclipse-distro-build ]
0 commit comments