From 33e0dbce486c3a062b8587559a456fa8a2bd175f Mon Sep 17 00:00:00 2001 From: Anton Palgunov Date: Fri, 28 Jul 2023 20:01:48 +0100 Subject: [PATCH] Revert publish.yml --- .github/workflows/publish.yml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..d1b03be --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,41 @@ +name: Publish unsign version + +on: + push: + branches: + - master + tags: + - "v*" + +jobs: + Build-and-release: + runs-on: macOS-latest + + 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 -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: Create DMG + run: | + cd Release + create-dmg MTMR.app || true + + - name: GitHub Release + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: false + files: Release/MTMR*.dmg