Sharing artifacts between workflows

Ive setup a workflow called build-artifactcs which builds an iOS project, then have another one called develop which runs the previous workflow and then deploys the artifacts.

However, I’m concerned that the artifacts will be cleared… is Bitrise smart enough not to clear the workspace if one workflow follows another?


1 Like

Hi @nezfood!

Thanks for asking this here! :wink:

Depends how you run the workflows. If you run those separately, in separate builds, then the deploy dir won’t be kept/shared.

But if you run workflows in a single build, with “Before Run” and “After Run” workflows (before_run and after_run in bitrise.yml), using the Workflow Chaining feature, that won’t clear the deploy directory / folder, and the files generated by Workflow A will be available in Workflow B (if A runs before B in the chain).

If you have any questions, just let us know!

Happy Building! :slight_smile:

1 Like