From 08a9696e8f7e2238275bc1d7f4b9f0495a6a362c Mon Sep 17 00:00:00 2001 From: litoarias Date: Thu, 2 Sep 2021 15:08:18 +0200 Subject: [PATCH 1/2] fix yml --- .github/workflows/cd.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 9c0bb21..59caf85 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -16,15 +16,21 @@ jobs: uses: actions/checkout@v1 - name: Deploy new release + if: "${{ contains(github.event.commits[0].message, 'patch') }}" uses: maierj/fastlane-action@v1.4.0 with: - if: "${{ contains(github.event.commits[0].message, 'patch') }}" lane: release bump:patch - - if: "${{ contains(github.event.commits[0].message, 'minor') }}" + + - name: Deploy new release + if: "${{ contains(github.event.commits[0].message, 'minor') }}" + uses: maierj/fastlane-action@v1.4.0 + with: lane: release bump:minor - - if: "${{ contains(github.event.commits[0].message, 'major') }}" + + - name: Deploy new release + if: "${{ contains(github.event.commits[0].message, 'major') }}" + uses: maierj/fastlane-action@v1.4.0 + with: lane: release bump:major env: From 9afaaa6a8fbd79f24ff642116de8d6438a83144c Mon Sep 17 00:00:00 2001 From: litoarias Date: Thu, 2 Sep 2021 15:15:17 +0200 Subject: [PATCH 2/2] patch issue --- .github/workflows/cd.yml | 17 ++++++++++------- fastlane/Fastfile | 1 + 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 59caf85..ada8795 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -12,27 +12,30 @@ jobs: runs-on: macOS-latest steps: + - name: Set env.BRANCH + run: echo "BRANCH=$(echo $GITHUB_REF | cut -d'/' -f 3)" >> $GITHUB_ENV + - name: Checkout repository uses: actions/checkout@v1 - - name: Deploy new release - if: "${{ contains(github.event.commits[0].message, 'patch') }}" + - name: Deploy new patch release + if: "${{ contains(env.BRANCH, 'patch') }}" uses: maierj/fastlane-action@v1.4.0 with: lane: release bump:patch - - name: Deploy new release - if: "${{ contains(github.event.commits[0].message, 'minor') }}" + - name: Deploy new minor release + if: "${{ contains(env.BRANCH, 'minor') }}" uses: maierj/fastlane-action@v1.4.0 with: lane: release bump:minor - - name: Deploy new release - if: "${{ contains(github.event.commits[0].message, 'major') }}" + - name: Deploy new major release + if: "${{ contains(env.BRANCH, 'major') }}" uses: maierj/fastlane-action@v1.4.0 with: lane: release bump:major - + env: APP_STORE_CONNECT_TEAM_ID: '${{ secrets.APP_STORE_CONNECT_TEAM_ID }}' DEVELOPER_APP_ID: '${{ secrets.DEVELOPER_APP_ID }}' diff --git a/fastlane/Fastfile b/fastlane/Fastfile index b56cadd..1d797fb 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -43,6 +43,7 @@ def broadcast_message() key: "CFBundleShortVersionString" ) + build = get_info_plist_value( path: "#{APP_NAME}/Info.plist", key: "CFBundleVersion"