From a35b77bfe3086e5ee7fa23c9cddf4c037b9d5027 Mon Sep 17 00:00:00 2001 From: Anton Palgunov Date: Tue, 11 Feb 2020 23:19:42 +0000 Subject: [PATCH] expose test artifact --- .github/workflows/build-test.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 352734c..89ec9ec 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -24,5 +24,27 @@ jobs: steps: - uses: actions/checkout@v1 + - name: Set up Node.js + uses: actions/setup-node@v1 + with: + node-version: 12.x + + - name: Install create-dmg + run: npm i -g create-dmg + - name: Build Archive - run: xcodebuild archive -project "MTMR.xcodeproj" -scheme "MTMR" -archivePath Release/App.xcarchive DEVELOPMENT_TEAM="" CODE_SIGN_IDENTITY="" | xcpretty + run: xcodebuild archive -project "MTMR.xcodeproj" -scheme "MTMR" -archivePath Release/App.xcarchive DEVELOPMENT_TEAM="" CODE_SIGN_IDENTITY="" | xcpretty -c && exit ${PIPESTATUS[0]} + + - name: Build App + run: xcodebuild -project "MTMR.xcodeproj" -exportArchive -archivePath Release/App.xcarchive -exportOptionsPlist export-options.plist -exportPath Release | xcpretty -c && exit ${PIPESTATUS[0]} + + - name: Build dmg + run: | + cd Release + rm -r App.xcarchive + create-dmg MTMR.app + + - uses: actions/upload-artifact@v1 + with: + name: MTMR.app + path: Release/MTMR.app