set cert env vars

This commit is contained in:
Labhansh Agrawal 2020-11-25 22:53:29 +05:30 committed by Benjamin Staneck
parent ed7dcd99f7
commit d20c9df458

View file

@ -119,13 +119,15 @@ jobs:
run: | run: |
Copy-Item .\build\canary.ico .\build\icon.ico Copy-Item .\build\canary.ico .\build\icon.ico
Copy-Item .\build\canary.icns .\build\icon.icns Copy-Item .\build\canary.icns .\build\icon.icns
- name: Get Certificate for signing - name: Build (pr)
if: github.event_name == 'push' if: github.event_name == 'pull_request'
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 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 - name: Get Windows Artifact Names
id: getwindowsfilename id: getwindowsfilename
run: | run: |