Add ability to update on quit #208
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: macOS-11.00 | |
steps: | |
- name: Setup build environment | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- run: npm install -g cross-env create-dmg | |
- name: Cloning Git repository | |
uses: actions/checkout@v1 | |
- name: Attempt to build OpenMTP | |
run: | | |
yarn | |
yarn build | |
- name: Attempt to generate unsigned macOS app | |
run: | | |
export CSC_IDENTITY_AUTO_DISCOVERY=false | |
yarn package-mac-without-notarize 2>&1 || true | |
- name: Check if macOS app was generated | |
run: test -e dist/mac/OpenMTP.app | |
- name: Attempt to create disk image for generated macOS app | |
run: | | |
mkdir dist/dmg | |
create-dmg dist/mac/OpenMTP.app dist/dmg 2>&1 || true | |
shasum dist/dmg/* >> dist/dmg/CHECKSUM_SHA256.txt | |
- name: Upload disk image and checksum as artifact | |
uses: actions/[email protected] | |
with: | |
name: 'Disk Image' | |
path: dist/dmg/ |