-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (46 loc) · 1.4 KB
/
release.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v4
with:
cache: 'yarn'
node-version: 20
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Python setup tools
run: |
pip install setuptools
- name: Install dependencies
run: yarn
- name: Add macOS certs
if: runner.os == 'macOS'
run: chmod +x ./.github/add-macos-certificate.sh && ./.github/add-macos-certificate.sh
env:
APPLE_CERTIFICATES: ${{ secrets.APPLE_CERTIFICATES }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
- name: Publish x64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: yarn run publish --arch x64
- name: Publish arm64
if: ${{ runner.os == 'macOS' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
run: yarn run publish --arch arm64