Еxport recording and file to disk in workflow

What approach to use to solve the problem?