GHA: build on every push. Remove unnecessary files
This commit is contained in:
46
.github/scripts/macos-notarize-via-http-service.sh
vendored
Executable file
46
.github/scripts/macos-notarize-via-http-service.sh
vendored
Executable file
@@ -0,0 +1,46 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
DMG=$1
|
||||
NOTARIZE_SERVICE_URL=$2
|
||||
|
||||
echo "Notarize DMG"
|
||||
echo ${DMG}
|
||||
|
||||
RESPONSE=\
|
||||
$(curl -s -X POST \
|
||||
-F file=@${DMG} \
|
||||
-F 'options={"primaryBundleId": "SpringTools4", "staple": true};type=application/json' \
|
||||
${NOTARIZE_SERVICE_URL}/macos-notarization-service/notarize)
|
||||
|
||||
echo "Notarization request submitted"
|
||||
echo ${RESPONSE}
|
||||
|
||||
UUID=$(echo ${RESPONSE} | jq -r '.uuid')
|
||||
|
||||
STATUS=$(echo ${RESPONSE} | jq -r '.notarizationStatus.status')
|
||||
|
||||
echo "Status after submitting"
|
||||
echo ${STATUS}
|
||||
|
||||
while [[ ${STATUS} == 'IN_PROGRESS' ]]; do
|
||||
sleep 60
|
||||
RESPONSE=$(curl -s ${NOTARIZE_SERVICE_URL}/macos-notarization-service/${UUID}/status)
|
||||
STATUS=$(echo ${RESPONSE} | jq -r '.notarizationStatus.status')
|
||||
|
||||
echo "Waiting for status to change"
|
||||
echo ${RESPONSE}
|
||||
echo ${STATUS}
|
||||
done
|
||||
|
||||
echo "Status is not in progress anymore"
|
||||
echo ${RESPONSE}
|
||||
echo ${STATUS}
|
||||
|
||||
if [[ ${STATUS} != 'COMPLETE' ]]; then
|
||||
echo "Notarization failed: ${RESPONSE}"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mv "${DMG}" "${DMG}-unnotarized"
|
||||
|
||||
curl -o ${DMG} -J ${NOTARIZE_SERVICE_URL}/macos-notarization-service/${UUID}/download
|
||||
@@ -1,12 +1,12 @@
|
||||
name: Eclipse LS Extensions Snapshot Build
|
||||
|
||||
# configure manual trigger
|
||||
on:
|
||||
workflow_dispatch:
|
||||
#on:
|
||||
# push:
|
||||
# branches:
|
||||
# - 'main'
|
||||
# workflow_dispatch:
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
jobs:
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@ on:
|
||||
types: [completed]
|
||||
branches:
|
||||
- "main"
|
||||
workflow_dispatch:
|
||||
# workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
e427-distro:
|
||||
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
|
||||
with:
|
||||
eclipse_profile: 'e427'
|
||||
|
||||
@@ -12,11 +12,11 @@ on:
|
||||
types: [completed]
|
||||
branches:
|
||||
- "main"
|
||||
workflow_dispatch:
|
||||
# workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
e428-distro:
|
||||
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
|
||||
with:
|
||||
eclipse_profile: 'e428'
|
||||
|
||||
@@ -10,11 +10,11 @@ on:
|
||||
types: [completed]
|
||||
branches:
|
||||
- "main"
|
||||
workflow_dispatch:
|
||||
# workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
e429-distro:
|
||||
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
uses: ./.github/workflows/gh-hosted-eclipse-distro-build.yml
|
||||
with:
|
||||
eclipse_profile: 'e429'
|
||||
|
||||
Reference in New Issue
Block a user