From 3fc75ca8f01cc89fbb4b665265c5fadc21c67a1c Mon Sep 17 00:00:00 2001 From: Anton Palgunov Date: Wed, 13 May 2020 23:22:31 +0100 Subject: [PATCH] Updated workflows. For delivery unsign app in gihub --- .github/workflows/build-test.yml | 2 +- .github/workflows/publish.yml | 25 ++++++++++++++++++------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index fa2af3c..d341f6c 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -1,4 +1,4 @@ -name: Swift +name: Build-and-test on: [push, pull_request] diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 31cb0e7..347ff4a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,11 +1,12 @@ -name: Swift +name: Publish unsign version -on: - push: - branches: - - master - tags: - - "v*" +# on: +# push: +# branches: +# - master +# tags: +# - "v*" +on: [push, pull_request] jobs: test: @@ -28,4 +29,14 @@ jobs: - 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: Create DMG + run: | + cd Release + create-dmg MTMR.app + - name: GitHub Release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + files: Release/MTMR*.dmg.tgz