Skip to content

Commit

Permalink
Merge pull request #3 from litoarias/some_branch
Browse files Browse the repository at this point in the history
fix yml
  • Loading branch information
litoarias committed Sep 2, 2021
2 parents 46d0263 + 9afaaa6 commit f8d81de
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +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
- name: Deploy new patch release
if: "${{ contains(env.BRANCH, '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 minor release
if: "${{ contains(env.BRANCH, 'minor') }}"
uses: maierj/fastlane-action@v1.4.0
with:
lane: release bump:minor

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 }}'
Expand Down
1 change: 1 addition & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def broadcast_message()
key: "CFBundleShortVersionString"
)


build = get_info_plist_value(
path: "#{APP_NAME}/Info.plist",
key: "CFBundleVersion"
Expand Down

0 comments on commit f8d81de

Please sign in to comment.