separate mac builds

This commit is contained in:
Eugene Pankov
2020-05-07 09:08:24 +02:00
parent 7d7b2cbcfd
commit 90cc06c3fd
4 changed files with 83 additions and 12 deletions

View File

@@ -2,7 +2,7 @@ name: macOS Build
on: [push, pull_request]
jobs:
build:
runs-on: macOS-latest
runs-on: macos-latest
steps:
- name: Checkout
@@ -31,8 +31,6 @@ jobs:
- name: Prepackage plugins
run: scripts/prepackage-plugins.js
- run: sed -i '' 's/updateInfo = await/\/\/updateInfo = await/g' node_modules/app-builder-lib/out/targets/ArchiveTarget.js
- name: Build and sign packages
run: scripts/build-macos.js
if: github.repository == 'Eugeny/terminus' && github.event_name == 'push'
@@ -54,17 +52,9 @@ jobs:
run: |
mkdir artifact-pkg
mv dist/*.pkg artifact-pkg/
mkdir artifact-zip
mv dist/*.zip artifact-zip/
- uses: actions/upload-artifact@master
name: Upload PKG
with:
name: macOS .pkg
path: artifact-pkg
- uses: actions/upload-artifact@master
name: Upload ZIP
with:
name: macOS .zip
path: artifact-zip