Feat/osx sign #110
Workflow file for this run
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: Electron/make | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
# TODO: might need to add `distutils` to the python version | |
# when `Preparing native dependencies: node-gyp` error occurs | |
# https://stackoverflow.com/questions/77233855/why-did-i-get-an-error-modulenotfounderror-no-module-named-distutils | |
jobs: | |
make: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Cache node modules | |
uses: actions/cache@v3 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Enable corepack | |
run: corepack enable | |
- name: Install dependencies | |
run: yarn install | |
- name: Build packages | |
run: yarn build | |
- name: Generate Apple Auth Key | |
run: echo ${{ secrets.APPLE_P8_AUTH_KEY }} | base64 --decode > AuthKey_${{env.APPLE_API_KEY_ID}}.p8 | |
- name: Make application | |
run: yarn make | |
env: | |
APPLE_API_KEY: AuthKey_${{ env.APPLE_API_KEY_ID }}.p8 |