Skip to content

Add distribution workflow. #1

Add distribution workflow.

Add distribution workflow. #1

Workflow file for this run

on: [push]
jobs:
distribute:
runs-on: macOS-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: 18
- name: Install Dependencies
run: npm install
- name: Prepare for Distribution
run: |
mkdir -p ~/private_keys
echo '${{ secrets.api_key }}' > ~/private_keys/AuthKey_${{ secrets.api_key_id }}.p8
echo '${{ secrets.mac_certs }}' | base64 -d > applecert.p12
- name: Build and Release Application
run: npm run build:mac
env:
APPLE_ID: ${{ secrets.apple_id }}
APPLE_ID_PASSWORD: ${{ secrets.apple_id_password }}
APPLEID: ${{ secrets.apple_id }}
APPLEIDPASS: ${{ secrets.apple_id_password }}