2019-08-15 12:53:17 +03:00
|
|
|
name: macOS Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: macOS-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Installing Node
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
version: 10
|
|
|
|
|
|
|
|
- name: Build
|
2019-08-26 23:14:10 +03:00
|
|
|
run: |
|
|
|
|
cd app
|
|
|
|
yarn
|
|
|
|
cd ..
|
|
|
|
rm app/node_modules/.yarn-integrity
|
|
|
|
yarn
|
2019-08-26 23:21:23 +03:00
|
|
|
yarn run lint
|
2019-08-26 23:14:10 +03:00
|
|
|
scripts/build-native.js
|
|
|
|
yarn run build:typings
|
|
|
|
yarn run build
|
|
|
|
scripts/prepackage-plugins.js
|
|
|
|
scripts/build-macos.js
|
2019-08-15 13:41:22 +03:00
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
|
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
|
|
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
2019-08-15 14:13:35 +03:00
|
|
|
|
|
|
|
- name: Package artifacts
|
|
|
|
run: |
|
2019-08-15 15:56:03 +03:00
|
|
|
mkdir artifact-pkg
|
|
|
|
mv dist/*.pkg artifact-pkg/
|
|
|
|
mkdir artifact-zip
|
|
|
|
mv dist/*.zip artifact-zip/
|
2019-08-15 14:13:35 +03:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
2019-08-15 15:59:07 +03:00
|
|
|
name: Upload PKG
|
2019-08-15 14:13:35 +03:00
|
|
|
with:
|
2019-08-15 15:56:03 +03:00
|
|
|
name: macOS .pkg
|
|
|
|
path: artifact-pkg
|
|
|
|
|
|
|
|
- uses: actions/upload-artifact@master
|
2019-08-15 15:59:07 +03:00
|
|
|
name: Upload ZIP
|
2019-08-15 15:56:03 +03:00
|
|
|
with:
|
|
|
|
name: macOS .zip
|
|
|
|
path: artifact-zip
|