tabby/.github/workflows/macos.yml

70 lines
1.6 KiB
YAML
Raw Normal View History

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
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: Build typings
run: yarn run build:typings
- 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:
2019-09-09 14:38:29 +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 }}
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/
mkdir artifact-zip
mv dist/*.zip artifact-zip/
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
- uses: actions/upload-artifact@master
2019-08-15 12:59:07 +00:00
name: Upload ZIP
2019-08-15 12:56:03 +00:00
with:
name: macOS .zip
path: artifact-zip