Skip to content

Commit

Permalink
Fastlane changes for tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
stzouvaras committed Nov 29, 2024
1 parent 4cedc13 commit 7ba42ca
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,27 +109,27 @@ platform :ios do
tag: tagVersion,
)

push_git_tags(
tag: tagVersion,
)

if ENV['PROD_REMOTE_REPO'] && ENV['DEV_REMOTE_REPO']
upload_tag_to_prod(
prodRemoteUrl: ENV['PROD_REMOTE_REPO'],
devRemoteUrl: ENV['DEV_REMOTE_REPO'],
tagVersion: tagVersion,
if ENV['PROD_REMOTE_REPO']
upload_tag(
remoteUrl: ENV['PROD_REMOTE_REPO'],
tag: tagVersion,
)
end

if ENV['DEV_REMOTE_REPO']
upload_tag(
remoteUrl: ENV['DEV_REMOTE_REPO'],
tag: tagVersion,
)
end
end

desc "Upload tag to prod remote repo"
lane :upload_tag_to_prod do |values|
prodRemoteUrl = values[:prodRemoteUrl]
devRemoteUrl = values[:devRemoteUrl]
desc "Upload tag to remote repo"
lane :upload_tag do |values|
remoteUrl = values[:remoteUrl]
tagVersion = values[:tagVersion]
sh("git remote set-url origin #{prodRemoteUrl}")
sh("git remote set-url origin #{remoteUrl}")
push_git_tags(tag: tagVersion)
sh("git remote set-url origin #{devRemoteUrl}")
end

desc "Reset version and build number to default"
Expand Down
6 changes: 3 additions & 3 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ Run tests

Build EUDI Wallet Demo version and upload it to AppCenter

### ios upload_tag_to_prod
### ios upload_tag

```sh
[bundle exec] fastlane ios upload_tag_to_prod
[bundle exec] fastlane ios upload_tag
```

Upload tag to prod remote repo
Upload tag to remote repo

### ios upload_upstore

Expand Down

0 comments on commit 7ba42ca

Please sign in to comment.