Enable Windows Code-signing using ssl.com esigner (#5506)

* Revert previous change

* add code signing steps on release-publish

* rename secret

* fix path
This commit is contained in:
Filipe Freire 2022-12-12 13:13:35 +00:00 committed by GitHub
parent b3ce4ece0a
commit 9fa5fe5f2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 1 deletions

View File

@ -37,7 +37,8 @@ jobs:
- name: Bootstrap packages
run: npm run bootstrap
- name: Package app
- name: Package app (MacOS only)
if: matrix.os == 'macos-latest'
shell: bash
run: npm run app-package
env:
@ -47,6 +48,13 @@ jobs:
CSC_LINK: ${{ matrix.csc_link_secret != '' && secrets[matrix.csc_link_secret] || '' }}
CSC_KEY_PASSWORD: ${{ matrix.csc_key_password_secret != '' && secrets[matrix.csc_key_password_secret] || '' }}
- name: Package app (Windows and Linux)
if: matrix.os != 'macos-latest'
shell: bash
run: npm run app-package
env:
NODE_OPTIONS: '--max_old_space_size=6144'
- name: Setup Inso CLI version env var
run:
echo "INSO_VERSION=$(jq .version packages/insomnia-inso/package.json -rj)" >> $GITHUB_ENV

View File

@ -41,6 +41,28 @@ jobs:
branch: ${{ env.RELEASE_BRANCH }} # Branch workflow ran on != branch the workflow created
path: ./artifacts/
- name: Code-sign Windows .exe artifact
uses: sslcom/actions-codesigner@develop
with:
command: sign
username: ${{secrets.ES_USERNAME}}
password: ${{secrets.ES_PASSWORD}}
credential_id: ${{secrets.ES_CREDENTIAL_ID}}
totp_secret: ${{secrets.ES_TOTP_SECRET}}
file_path: ./artifacts/windows-latest-artifacts/insomnia/artifacts/Insomnia.Core-${{ env.RELEASE_VERSION }}.exe
output_path: ./artifacts/windows-latest-artifacts/insomnia/artifacts/
- name: Code-sign Windows portable .exe artifact
uses: sslcom/actions-codesigner@develop
with:
command: sign
username: ${{secrets.ES_USERNAME}}
password: ${{secrets.ES_PASSWORD}}
credential_id: ${{secrets.ES_CREDENTIAL_ID}}
totp_secret: ${{secrets.ES_TOTP_SECRET}}
file_path: ./artifacts/windows-latest-artifacts/insomnia/artifacts/Insomnia.Core-${{ env.RELEASE_VERSION }}-portable.exe
output_path: ./artifacts/windows-latest-artifacts/insomnia/artifacts/
- name: Set Inso CLI version on Github Env
run:
echo "INSO_VERSION=$(jq .version packages/insomnia-inso/package.json -rj)" >> $GITHUB_ENV