From d20c9df4584af8903ded5231e6acd96220b7f380 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Wed, 25 Nov 2020 22:53:29 +0530 Subject: [PATCH] set cert env vars --- .github/workflows/nodejs.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index bb16ceae..aa3e412d 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -119,13 +119,15 @@ 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 + - name: Build (pr) + if: github.event_name == 'pull_request' run: yarn run dist --publish=never + - name: Build (push) + if: github.event_name == 'push' + run: yarn run dist --publish=never + env: + CSC_LINK: ${{ secrets.WIN_CERT_P12_BASE64 }} + CSC_KEY_PASSWORD: ${{ secrets.WIN_CERT_P12_PASSWORD }} - name: Get Windows Artifact Names id: getwindowsfilename run: |