-
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use GitHub Action Step to Tag Commit
- Loading branch information
Showing
2 changed files
with
6 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |