Skip to content

Commit

Permalink
fix: Allow it to proceed past the normal error point, for debugging p…
Browse files Browse the repository at this point in the history
…urposes, but checking that it has the required file before creating the release
  • Loading branch information
othyn committed Jul 14, 2023
1 parent 1772f43 commit 15ba9af
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,19 @@ platform :mac do
end

UI.message "Output is #{result.inspect}"
return status.exitstatus
end

# Debugging
sh "ls", "-lah", "../build"
sh "ls", "-lah", "/Volumes"

output_dmg_path = "build/AutoClicker v#{lane_context[SharedValues::RELEASE_NEXT_VERSION]}-beta-#{lane_context[SharedValues::RELEASE_LAST_TAG_HASH]}.dmg"

unless File.exist?(output_dmg_path)
UI.error("File does not exist: #{output_dmg_path}")
error!("Exiting lane due to missing output DMG!")
end

# https://docs.fastlane.tools/actions/set_github_release/#set_github_release
set_github_release(
repository_name: "othyn/macos-auto-clicker",
Expand All @@ -131,7 +137,7 @@ platform :mac do
is_prerelease: true,
commitish: "main",
upload_assets: [
"build/AutoClicker v#{lane_context[SharedValues::RELEASE_NEXT_VERSION]}-beta-#{lane_context[SharedValues::RELEASE_LAST_TAG_HASH]}.dmg",
output_dmg_path,
"build/AutoClicker.app.dSYM.zip"
]
)
Expand Down

0 comments on commit 15ba9af

Please sign in to comment.