Skip to content

Commit

Permalink
Merge pull request #235 from niscy-eudiw/main
Browse files Browse the repository at this point in the history
Fastlane changes for tagging
  • Loading branch information
stzouvaras authored Nov 29, 2024
2 parents bde5426 + 072e9a3 commit eb952d9
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 @@ -76,27 +76,27 @@ platform :android 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 "Upload to AppCenter"
Expand Down
6 changes: 3 additions & 3 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ Runs all the unit tests

Build Wallet and upload it to appcenter

### android upload_tag_to_prod
### android upload_tag

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

Upload tag to prod remote repo
Upload tag to remote repo

### android upload_to_appcenter

Expand Down

0 comments on commit eb952d9

Please sign in to comment.