forked from noya-app/noya
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 1018 Bytes
/
release-desktop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Release Desktop App
on:
workflow_dispatch:
push:
tags:
- 'desktop-v*'
jobs:
release:
environment: desktop
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Set MacOS signing certs
if: matrix.os == 'macos-latest'
run: |
chmod +x ./packages/noya-desktop/tools/add-macos-cert.sh
./packages/noya-desktop/tools/add-macos-cert.sh
env:
MACOS_CERT_P12: ${{ secrets.MACOS_CERT_P12 }}
MACOS_CERT_PASSWORD: ${{ secrets.MACOS_CERT_PASSWORD }}
- uses: actions/setup-node@main
with:
node-version: 16.18.1
- run: yarn
- run: |
yarn release:desktop ${{ matrix.os == 'macos-latest' && '--arch=universal' || '' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}