Release mac #9
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: Release mac | |
on: workflow_dispatch | |
jobs: | |
release: | |
name: Build mac binaries | |
runs-on: macos-latest | |
timeout-minutes: 90 | |
env: | |
#DEBUG: 'electron-notarize' | |
AM_DEV_TOKEN: ${{secrets.AM_DEV_TOKEN}} | |
LF_API_KEY: ${{secrets.LF_API_KEY}} | |
LF_API_SECRET: ${{secrets.LF_API_SECRET}} | |
SPOTIFY_DISABLED: 'true' | |
APPLE_ID: ${{secrets.APPLE_ID}} | |
APPLE_ID_PASSWORD: ${{secrets.APPLE_ID_PASSWORD}} | |
APPLE_TEAM_ID: ${{secrets.APPLE_TEAM_ID}} | |
CSC_LINK: ${{secrets.APPLE_CERT_BASE64}} | |
CSC_KEY_PASSWORD: ${{secrets.APPLE_CERT_PASSWORD}} | |
GH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20.x" | |
- name: Install web view dependencies | |
run: npm install | |
- name: Build web view | |
run: npm run build:electron | |
- name: Install electron dependencies | |
working-directory: ./app | |
run: npm install | |
- name: Install castlabs-evs | |
working-directory: ./app | |
run: python -m pip install --upgrade castlabs-evs | |
- name: Authorize castlabs-evs | |
working-directory: ./app | |
run: python -m castlabs_evs.account reauth -A ${{secrets.CASTLABS_ACCOUNT_NAME}} -P ${{secrets.CASTLABS_PASSWORD}} | |
- name: Build and package electron app | |
working-directory: ./app | |
run: npm exec electron-builder -- --publish always --mac |