Skip to content

Feature/sign application assets #50

Feature/sign application assets

Feature/sign application assets #50

Workflow file for this run

name: "Sign Executable"
# Should be triggered by tagged_release later ...
on:
push:
branches: [ main ]
pull_request:
branches: [ '**' ]
workflow_run:
workflows: ["Create Tagged Release"]
types:
- completed
jobs:
build:
name: Signing Electron Applications
runs-on: ubuntu-20.04
steps:
- name: Trigger Jenkins Job, for signing executable
run: |
DATA='{"repository": {"url": "https://github.com/eclipse-esmf/esmf-aspect-model-editor", "html_url": "https://github.com/eclipse-esmf/esmf-aspect-model-editor", "owner": { "name": "ESMF"}}, "pusher": { "name": "GitHub Action", "email": "[email protected]"}}'
SHA1="$(echo -n "${DATA}" | openssl dgst -sha1 -hmac "${WEBHOOK_SECRET}" | sed 's/SHA1(stdin)= //')"
curl -X POST https://ci.eclipse.org/esmf/github-webhook/ -H "Content-Type: application/json" -H "X-GitHub-Event: push" -H "X-Hub-Signature: sha1=${SHA1}" -d "${DATA}"