Browse Source

Add a fastlane lane to upload a release to the FTP

pipelines/135724
Nicolas Pomepuy 6 years ago
parent
commit
28400bf95b
  1. 13
      buildsystem/automation/README.md
  2. 43
      buildsystem/automation/fastlane/Fastfile
  3. 1
      buildsystem/automation/fastlane/Pluginfile

13
buildsystem/automation/README.md

@ -61,12 +61,23 @@ VLC-Android-3.3.1-Beta-1-x86_64.apk
**Prerequisites**:
you need to export 3 env variables: HUAWEI_CLIENT_ID, HUAWEI_CLIENT_SECRET and HUAWEI_APP_ID
You need to export 3 env variables: HUAWEI_CLIENT_ID, HUAWEI_CLIENT_SECRET and HUAWEI_APP_ID
- `deploy_huawei` sends a release to the Huawei AppGallery in draft
Options: `version` is the version string in the apk name.
#### FTP
**Prerequisites**:
You need to export 1 env variable: VIDEOLAN_FTP_HOST
- `deploy_ftp`
Options: `version` is the version string in the apk name.
The 4 apks will be uploaded in the `/incoming/[version]` folder of the FTP with anonymous credentials
### Screenshots

43
buildsystem/automation/fastlane/Fastfile

@ -28,7 +28,7 @@ platform :android do
end
lane :deploy_screenshots do
upload_to_play_store(skip_upload_changelogs:true, skip_upload_images:true, skip_upload_apk:true, release_status:"draft", apk_paths:["VLC-Android-3.3.0-arm64-v8a.apk", "VLC-Android-3.3.0-armeabi-v7a.apk", "VLC-Android-3.3.0-x86.apk", "VLC-Android-3.3.0-x86_64.apk"])
upload_to_play_store(skip_upload_changelogs:true, skip_upload_images:true, skip_upload_apk:true, release_status:"draft")
slack(message: 'Successfully uploaded screenshots to Play Store')
end
@ -81,4 +81,45 @@ platform :android do
slack(message: 'Successfully created a new draft for '+options[:version]+' on Huawei AppGallery')
end
lane :deploy_ftp do |options|
#gradle(task: 'assemble', build_type: 'Release')
ftp(
host: ENV["VIDEOLAN_FTP_HOST"],
username: 'anonymous',
password: '',
upload:{
src: "./VLC-Android-"+options[:version]+"-arm64-v8a.apk",
dest: "/incoming/"+options[:version]
}
)
ftp(
host: ENV["VIDEOLAN_FTP_HOST"],
username: 'anonymous',
password: '',
upload:{
src: "./VLC-Android-"+options[:version]+"-armeabi-v7a.apk",
dest: "/incoming/"+options[:version]
}
)
ftp(
host: ENV["VIDEOLAN_FTP_HOST"],
username: 'anonymous',
password: '',
upload:{
src: "./VLC-Android-"+options[:version]+"-x86.apk",
dest: "/incoming/"+options[:version]
}
)
ftp(
host: ENV["VIDEOLAN_FTP_HOST"],
username: 'anonymous',
password: '',
upload:{
src: "./VLC-Android-"+options[:version]+"-x86_64.apk",
dest: "/incoming/"+options[:version]
}
)
slack(message: 'Successfully uploaded '+options[:version]+' to FTP')
end
end

1
buildsystem/automation/fastlane/Pluginfile

@ -3,3 +3,4 @@
# Ensure this file is checked in to source control!
gem 'fastlane-plugin-huawei_appgallery_connect'
gem 'fastlane-plugin-ftp'

Loading…
Cancel
Save