2019-08-15 09:53:17 +00:00
|
|
|
name: macOS Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-05-07 07:08:24 +00:00
|
|
|
runs-on: macos-latest
|
2019-08-15 09:53:17 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Installing Node
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2020-03-01 12:26:40 +00:00
|
|
|
node-version: 10
|
2019-08-15 09:53:17 +00:00
|
|
|
|
2019-09-09 14:38:29 +00:00
|
|
|
- name: Install deps
|
2019-08-26 20:14:10 +00:00
|
|
|
run: |
|
2019-10-14 03:17:54 +00:00
|
|
|
sudo npm i -g yarn@1.19.1
|
2019-08-26 20:14:10 +00:00
|
|
|
cd app
|
|
|
|
yarn
|
|
|
|
cd ..
|
|
|
|
rm app/node_modules/.yarn-integrity
|
|
|
|
yarn
|
2019-09-09 14:38:29 +00:00
|
|
|
|
|
|
|
- name: Build native deps
|
|
|
|
run: scripts/build-native.js
|
|
|
|
|
|
|
|
- name: Webpack
|
|
|
|
run: yarn run build
|
|
|
|
|
|
|
|
- name: Prepackage plugins
|
|
|
|
run: scripts/prepackage-plugins.js
|
|
|
|
|
2019-09-20 09:21:39 +00:00
|
|
|
- name: Build and sign packages
|
2019-09-09 14:38:29 +00:00
|
|
|
run: scripts/build-macos.js
|
2019-09-20 09:28:04 +00:00
|
|
|
if: github.repository == 'Eugeny/terminus' && github.event_name == 'push'
|
2019-08-15 10:41:22 +00:00
|
|
|
env:
|
2020-02-11 14:34:56 +00:00
|
|
|
#DEBUG: electron-builder,electron-builder:*
|
2019-08-15 10:41:22 +00:00
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
|
|
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
2020-05-04 12:48:46 +00:00
|
|
|
APPSTORE_USERNAME: ${{ secrets.APPSTORE_USERNAME }}
|
|
|
|
APPSTORE_PASSWORD: ${{ secrets.APPSTORE_PASSWORD }}
|
2019-08-15 11:13:35 +00:00
|
|
|
|
2019-09-20 09:21:39 +00:00
|
|
|
- name: Build packages without signing
|
|
|
|
run: scripts/build-macos.js
|
2019-09-20 09:28:04 +00:00
|
|
|
if: github.repository != 'Eugeny/terminus' || github.event_name != 'push'
|
2019-09-20 09:21:39 +00:00
|
|
|
env:
|
|
|
|
DEBUG: electron-builder,electron-builder:*
|
|
|
|
|
2019-08-15 11:13:35 +00:00
|
|
|
- name: Package artifacts
|
|
|
|
run: |
|
2019-08-15 12:56:03 +00:00
|
|
|
mkdir artifact-pkg
|
|
|
|
mv dist/*.pkg artifact-pkg/
|
2019-08-15 11:13:35 +00:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
2019-08-15 12:59:07 +00:00
|
|
|
name: Upload PKG
|
2019-08-15 11:13:35 +00:00
|
|
|
with:
|
2019-08-15 12:56:03 +00:00
|
|
|
name: macOS .pkg
|
|
|
|
path: artifact-pkg
|