mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
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:
parent
b3ce4ece0a
commit
9fa5fe5f2e
10
.github/workflows/release-build.yml
vendored
10
.github/workflows/release-build.yml
vendored
@ -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
|
||||
|
22
.github/workflows/release-publish.yml
vendored
22
.github/workflows/release-publish.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user