Revert "[native] Temporary changes for staff release" #2246
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows build CI | |
on: | |
workflow_call: | |
push: | |
branches: [master] | |
paths-ignore: | |
- 'landing/**' | |
- 'docs/**' | |
- 'keyserver/**' | |
- 'native/**' | |
- 'shared/**' | |
jobs: | |
build: | |
name: Build Windows app | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fix node-gyp | |
run: python3 -m pip install packaging setuptools | |
- name: yarn ci-cleaninstall | |
run: yarn ci-cleaninstall | |
- name: Save WINDOWS_CERTIFICATE_B64 to file | |
env: | |
WINDOWS_CERTIFICATE_B64: ${{secrets.WINDOWS_CERTIFICATE_B64}} | |
run: echo "$env:WINDOWS_CERTIFICATE_B64" > WINDOWS_CERTIFICATE_B64.b64 | |
- name: Decode Windows certificate | |
run: certutil -decode WINDOWS_CERTIFICATE_B64.b64 windows_certificate.pfx | |
- name: Build App | |
env: | |
WINDOWS_CERTIFICATE: ${{github.workspace}}\windows_certificate.pfx | |
WINDOWS_PASSWORD: ${{secrets.WINDOWS_PASSWORD}} | |
working-directory: './desktop' | |
run: yarn make | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: windows-artifacts | |
path: ./desktop/out/make/**/* | |
if-no-files-found: error | |
retention-days: 1 |