diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 06cb07257..1abfd9f1e 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -34,7 +34,7 @@ lane :simulator do aws_s3( access_key: ENV["AWS_ACCESS_KEY_ID"], secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"], - bucket: ENV["DES_GLOBALS_ENV_DES4_ARTEFACT_S3"], + bucket: des-mobile-artefacts, path: "github-actions/#{path}/#{ENV["RUN_ID"]}/", html_in_folder: false, upload_metadata: false, @@ -44,7 +44,7 @@ lane :simulator do file = "simulator/$BRANCH-#{ENV["RUN_ID"]}-APP.txt" sh("echo $S3_IPA_OUTPUT_PATH > #{file}") - sh("aws s3 cp #{file} s3://#{ENV["DES_GLOBALS_ENV_DES4_ARTEFACT_S3"]}/github-actions/files/#{path}/") + sh("aws s3 cp #{file} s3://des-mobile-artefacts/github-actions/files/#{path}/") content = sh("cat #{file}") sh("echo '⬇️ Simulator Location: [des-#{ENV["ENVIRONMENT"]}-#{ENV["BRANCH"]}.#{ENV["RUN_ID"]}.app.zip](#{content})' >> $GITHUB_STEP_SUMMARY") puts ENV["APP_FILE"] = content @@ -86,7 +86,7 @@ lane :release_build do aws_s3( access_key: ENV["AWS_ACCESS_KEY_ID"], secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"], - bucket: ENV["DES_GLOBALS_ENV_DES4_ARTEFACT_S3"], + bucket: des-mobile-artefacts, path: "github-actions/#{path}/#{version}/", html_in_folder: true, html_file_name: "DrivingExaminerService-#{version}-#{ENV["RUN_ID"]}-#{short_hash}.html", @@ -97,7 +97,7 @@ lane :release_build do file = "builds/$BRANCH-#{version}.#{ENV["RUN_ID"]}-#{short_hash}-IPA.txt" sh("echo $S3_IPA_OUTPUT_PATH > #{file}") - sh("aws s3 cp #{file} s3://#{ENV["DES_GLOBALS_ENV_DES4_ARTEFACT_S3"]}/github-actions/files/#{path}/") + sh("aws s3 cp #{file} s3://des-mobile-artefacts/github-actions/files/#{path}/") content = sh("cat #{file}") sh("echo '⬇️ Application Location: [DrivingExaminerService-#{version}-#{ENV["RUN_ID"]}-#{short_hash}.ipa](#{content})' >> $GITHUB_STEP_SUMMARY")