Try to fix fastlane

This commit is contained in:
Zhiyuan Zheng 2021-03-25 01:20:30 +01:00
parent d80d864bc5
commit e14d679f33
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
2 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,7 @@ jobs:
- name: -- Step 4 -- Install node dependencies
run: yarn install
- name: -- Step 5 -- Install native dependencies
if: github.ref != 'refs/heads/main'
run: npx pod-install
- name: -- Step 6 -- Install ruby dependencies
run: bundle install

View File

@ -57,7 +57,7 @@ private_lane :github_release do |options|
description: "No changelog provided",
commitish: git_branch,
is_prerelease: options[:prerelease]
upload_assets: [lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]]
upload_assets: ["#{File.expand_path('..', Dir.pwd)}/tooot-#{GITHUB_RELEASE}.apk"]
)
end
@ -141,6 +141,7 @@ private_lane :build_android do
"android.injected.signing.key.password" => ENV["ANDROID_KEYSTORE_KEY_PASSWORD"],
}
)
sh "mv #{lane_context[SharedValues::GRADLE_APK_OUTPUT_PATH]} #{File.expand_path('..', Dir.pwd)}/tooot-#{GITHUB_RELEASE}.apk"
when "release"
else
if !is_ci