Skip to content

Commit

Permalink
fix task name
Browse files Browse the repository at this point in the history
Update release path and list of tasks

Revert "fix task name"

This reverts commit f6b4153.

Update task format

Update task name

Remove sh

Remove clean task

Skip upload to google play

Revert "Remove clean task"

This reverts commit 308487a.

Revert "Skip upload to google play"

This reverts commit 5889024.

Update path
  • Loading branch information
polstianka authored and KuznetsovNikita committed Jul 16, 2024
1 parent d0cdd80 commit 3c6ad93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ jobs:
with:
name: Tonkeeper X aab ${{ env.VERSION_CODE }}
path: |
${{ github.workspace }}/apps/wallet/instance/main/build/outputs
${{ github.workspace }}/apps/wallet/instance/main/src/release
12 changes: 5 additions & 7 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ platform :android do
desc "Build the android aab for release"
lane :build_release do
gradle(
task: "clean :apps:wallet.instance:main:bundleRelease",
task: ":apps:wallet:instance:main:bundle",
build_type: "Release",
properties: {
"android.injected.signing.store.file" => ENV["KEYSTORE_FILE"],
Expand All @@ -61,21 +61,21 @@ platform :android do
}
)

sh("ls -lR ./apps/wallet/instance/main/release/")
sh("ls -lR ../apps/wallet/instance/main/src/release")

puts "Debug"
puts Actions.lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH]
puts Actions.lane_context[SharedValues::GRADLE_ALL_AAB_OUTPUT_PATHS]
puts Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
puts Actions.lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS]

sh("echo APK_PATH=#{apk_path} >> $GITHUB_ENV")
sh("echo OUTPUT_PATH=#{Actions.lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH]} >> $GITHUB_ENV")
end

desc "Build the android apk"
lane :assemble_release do
gradle(
tasks: [":apps:wallet.instance:main:assembleRelease"],
task: ":apps:wallet.instance:main:assemble",
build_type: "Release",
properties: {
"android.injected.signing.store.file" => ENV["KEYSTORE_FILE"],
Expand All @@ -85,8 +85,6 @@ platform :android do
}
)

apk_path = lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]

sh("ls -lR ./apps/wallet/instance/main/release/")

puts "Debug"
Expand All @@ -95,7 +93,7 @@ platform :android do
puts Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]
puts Actions.lane_context[SharedValues::GRADLE_ALL_APK_OUTPUT_PATHS]

sh("echo APK_PATH=#{apk_path} >> $GITHUB_ENV")
sh("echo OUTPUT_PATH=#{Actions.lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]} >> $GITHUB_ENV")
end

desc "Upload to GooglePlay"
Expand Down

0 comments on commit 3c6ad93

Please sign in to comment.