Skip to content

Commit

Permalink
Use GitHub Action Step to Tag Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kimar committed Oct 6, 2023
1 parent 639c208 commit 1f849c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/deploy-appstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ jobs:
ITC_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
ITC_KEY: ${{ secrets.APPSTORE_PRIVATE_KEY }}
run: bundle exec fastlane ios deploy_appstore
- name: Tag commit
uses: tvdias/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
tag: "${{ env.GITHUB_TAG_NAME }}"
13 changes: 1 addition & 12 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,21 +64,10 @@ platform :ios do
export_xcargs: "-allowProvisioningUpdates")
deliver(app_identifier: $bundle_id, skip_screenshots: true, skip_metadata: true)

if is_ci
prepare_git
end

# commit_version_bump
add_git_tag(tag: "#{$version_number}-#{$build_number}")
push_to_git_remote
sh("echo \"GITHUB_TAG_NAME=#{$version_number}-#{$build_number}\" >> $GITHUB_ENV")
end
end

def prepare_git
sh("git config --local user.name Fastlane")
sh("git config --local user.email [email protected]")
end

def get_build_number
sh("git rev-list --count HEAD").chomp
end

0 comments on commit 1f849c5

Please sign in to comment.