GHA: build on every push. Remove unnecessary files

This commit is contained in:
aboyko
2023-07-20 02:25:14 -04:00
parent d8ead7aa62
commit 80a88b16af
17 changed files with 11 additions and 270 deletions

View 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

View File

@@ -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:

View File

@@ -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'

View File

@@ -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'

View File

@@ -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'