-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (55 loc) · 1.88 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
58
59
60
61
62
63
64
65
66
67
name: Build Release
on:
push:
tags:
- 'v*.*.*'
jobs:
build:
name: Build Idyll Studio
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Setup NodeJs
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Add MacOS certs
if: matrix.os == 'macos-latest' && startsWith(github.ref, 'refs/tags/')
run: chmod +x add-osx-cert.sh && ./add-osx-cert.sh
env:
CERTIFICATE_OSX_APPLICATION: ${{ secrets.CERTIFICATE_OSX_APPLICATION }}
CERTIFICATE_PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
- name: Increase file limits
if: matrix.os == 'macos-latest' && startsWith(github.ref, 'refs/tags/')
run: |
echo kern.maxfiles=65536 | sudo tee -a /etc/sysctl.conf
echo kern.maxfilesperproc=65536 | sudo tee -a /etc/sysctl.conf
sudo sysctl -w kern.maxfiles=65536
sudo sysctl -w kern.maxfilesperproc=65536
ulimit -n 65536 65536
echo "ulimit -n 65536 65536" >> .bashrc
source .bashrc
- name: Install dependencies
run: npm i
- name: Prune node modules
if: matrix.os == 'macos-latest' && startsWith(github.ref, 'refs/tags/')
run: npm run clean-modules
- name: Build
run: npm run make
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
- name: Upload builds to release
uses: softprops/action-gh-release@v1
with:
files: |
out/**/idyll-studio*.zip
out/**/idyll-studio*.dmg
out/**/idyll-studio*.deb
out/**/idyll-studio*.rpm
out/**/idyll-studio*Setup.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}