Signing test #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build/release Electron app | |
on: [push] | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Create Input file for test signing | |
shell: bash | |
run: | | |
mkdir -p ${GITHUB_WORKSPACE}/example | |
mkdir -p ${GITHUB_WORKSPACE}/artifacts | |
cp "./sample/minimal.exe" "${GITHUB_WORKSPACE}/example/minimal.exe" | |
- name: Sign Artifact with CodeSignTool | |
uses: ./ | |
with: | |
# Sign and timestamp code object. | |
command: sign | |
# SSL.com account username | |
username: ${{ secrets.ES_USERNAME }} | |
# SSL.com account password. | |
password: ${{ secrets.ES_PASSWORD }} | |
# Credential ID for signing certificate. | |
credential_id: ${{ secrets.CREDENTIAL_ID }} | |
# OAuth TOTP Secret (https://www.ssl.com/how-to/automate-esigner-ev-code-signing) | |
totp_secret: ${{ secrets.ES_TOTP_SECRET }} | |
# Path of code object to be signed. (DLL, JAR, EXE, MSI files vb... ) | |
# ${name}-${version}-setup.${ext} | |
file_path: ${{ github.workspace }}/example/minimal.exe | |
# Directory where signed code object(s) will be written. | |
output_path: ${{ github.workspace }}/artifacts | |
# Environment Name, For Production 'PROD' or For Staging 'TEST' | |
environment_name: TEST | |
# JVM Max Memory | |
jvm_max_memory: 2048M | |
# Signing Method v1 or v2 | |
signing_method: v1 |