From 7f424c1b7db5a6a3e515437ab53801f2bfbdd209 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Tue, 23 Jun 2020 23:16:57 +0530 Subject: [PATCH] Enable code signing in github actions --- .github/workflows/nodejs.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 797103e2..bb16ceae 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -27,6 +27,11 @@ jobs: run: | cp build/canary.ico build/icon.ico cp build/canary.icns build/icon.icns + # - name: Get Certificate for signing + # if: github.event_name == 'push' + # run: | + # echo "::set-env name=CSC_LINK::${{ secrets.MAC_CERT_P12_BASE64 }}" + # echo "::set-env name=CSC_KEY_PASSWORD::${{ secrets.MAC_CERT_P12_PASSWORD }}" - name: Build run: yarn run dist --publish=never - name: Get macOS Artifact Names @@ -61,7 +66,7 @@ jobs: cp build/canary.ico build/icon.ico cp build/canary.icns build/icon.icns - name: Build - run: yarn run dist --publish=never + run: yarn run dist --publish=never - name: Get Linux Artifact Names id: getlinuxfilename run: | @@ -114,6 +119,11 @@ jobs: run: | Copy-Item .\build\canary.ico .\build\icon.ico Copy-Item .\build\canary.icns .\build\icon.icns + - name: Get Certificate for signing + if: github.event_name == 'push' + run: | + Write-Host "::set-env name=CSC_LINK::${{ secrets.WIN_CERT_P12_BASE64 }}" + Write-Host "::set-env name=CSC_KEY_PASSWORD::${{ secrets.WIN_CERT_P12_PASSWORD }}" - name: Build run: yarn run dist --publish=never - name: Get Windows Artifact Names