From ccbd523861a38bdbfa36d00b16a00852bac540ed Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Tue, 23 Apr 2024 12:17:23 -0400 Subject: [PATCH] Skip signing --- .github/workflows/release.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c343c3d..83a66ba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,6 @@ on: workflow_dispatch: pull_request: - jobs: build-release: uses: ./.github/workflows/build.yml @@ -18,6 +17,18 @@ jobs: runs-on: macos-14 needs: [build-release] steps: + - name: Checkout repository + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + fetch-depth: 1 + + - name: Get app version and build number + run: | + APP_VERSION=$(xcrun agvtool mvers -terse1) + APP_BUILD=$(xcrun agvtool vers -terse) + echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV + echo "APP_BUILD=$APP_BUILD" >> $GITHUB_ENV + - name: Get build artifacts uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1 with: @@ -29,20 +40,13 @@ jobs: run: | npm install --global create-dmg mkdir release - create-dmg "build_artifacts/Barista.xcarchive/Products/Applications/Barista.app" "release" + create-dmg "build_artifacts/Barista.xcarchive/Products/Applications/Barista.app" "release" || true - name: Print out all release files run: | echo "Generated $(ls ./release | wc -l) files:" du -h -d 0 ./release/* - - name: Get app version and build number - run: | - APP_VERSION=$(xcrun agvtool mvers -terse1) - APP_BUILD=$(xcrun agvtool vers -terse) - echo "APP_VERSION=$APP_VERSION" >> $GITHUB_ENV - echo "APP_BUILD=$APP_BUILD" >> $GITHUB_ENV - - name: Create release and add release files uses: softprops/action-gh-release@20e085ccc73308c2c8e43ab8da4f8d7ecbb94d4e # 2.0.1 with: @@ -67,4 +71,4 @@ jobs: ## Internal Changes files: | - ./build/* + ./release/*