Skip to content

Commit

Permalink
[GH Actions] Removed Code-sign action with self-signed certificate
Browse files Browse the repository at this point in the history
The self-signed certificate is not needed anymore, as we use the official Eclipse certificate.
  • Loading branch information
FlorianReimold committed Apr 23, 2024
1 parent 0ad9379 commit 35cd5f2
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
branches:
- master
env:
IS_GITHUB_SIGNING_ALLOWED: true
IS_JENKINS_SIGNING_ALLOWED: true

jobs:
Expand Down Expand Up @@ -261,34 +260,6 @@ jobs:
run: cpack -C Release
working-directory: ${{ runner.workspace }}/_build/complete

- name: Detect certificate
id: cert
if: env.IS_GITHUB_SIGNING_ALLOWED == 'true'
run: |
if ($Env:CERT_BODY -and $Env:CERT_PSWD -and $Env:CERT_ALGO -and $Env:CERT_HASH) {
Write-Output "ATTENTION: a certificate is available"
Write-Output "IS_GITHUB_SIGNING_ENABLED=true" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
} else {
Write-Output "WARNING: a certificate is not available"
}
env:
CERT_BODY: ${{ secrets.CERT_BODY }}
CERT_PSWD: ${{ secrets.CERT_PSWD }}
CERT_ALGO: ${{ secrets.CERT_ALGO }}
CERT_HASH: ${{ secrets.CERT_HASH }}

# https://github.com/OrhanKupusoglu/code-sign-action
- name: Sign the installer
if: env.IS_GITHUB_SIGNING_ENABLED == 'true'
uses: OrhanKupusoglu/code-sign-action@v5.5.1
with:
cert_body: ${{ secrets.CERT_BODY }}
cert_pswd: ${{ secrets.CERT_PSWD }}
cert_algo: ${{ secrets.CERT_ALGO }}
cert_hash: ${{ secrets.CERT_HASH }}
folder: ${{ runner.workspace }}/_build/complete/_deploy
debug: false

- name: Upload Windows setup
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 35cd5f2

Please sign in to comment.