-
-
Notifications
You must be signed in to change notification settings - Fork 101
54 lines (44 loc) · 1.43 KB
/
build.yml
File metadata and controls
54 lines (44 loc) · 1.43 KB
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
name: Build/release
on:
push:
tags:
- 'SimpleInstaBot/v*'
- 'instauto/v*'
workflow_dispatch:
schedule:
- cron: '0 10 * * *'
jobs:
release:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
# Windows fix. See https://github.com/actions/checkout/issues/226
- run: git config --global core.autocrlf false
- uses: actions/checkout@v6
# todo remove once fixed https://github.com/actions/setup-node/issues/531
- uses: actions/setup-node@v6
with:
node-version: 22
- run: corepack enable
- uses: actions/setup-node@v6
with:
node-version: 22
cache: 'yarn'
- name: Prepare for app notarization
if: startsWith(matrix.os, 'macos')
# Import Apple API key for app notarization on macOS
run: |
mkdir -p ~/private_keys/
echo '${{ secrets.api_key }}' > ~/private_keys/AuthKey_${{ secrets.api_key_id }}.p8
- run: yarn install --immutable
- run: yarn workspace instauto build
- run: yarn workspace simpleinstabot build
- run: yarn workspace simpleinstabot electron-builder
env:
GH_TOKEN: ${{ secrets.github_token }}
# macOS notarization API key
API_KEY_ID: ${{ secrets.api_key_id }}
API_KEY_ISSUER_ID: ${{ secrets.api_key_issuer_id }}