Packaging a workflow by using SharePoint Designer 2013 from Developement environment
- Open an existing workflow, or develop a new workflow, in SharePoint Designer 2013.
- On the Workflow Settings tab in the ribbon, click the Save as Template button in the Manage section as shown in the figure.
- An informational dialog box appears to let you know the template has been saved to the Site Assets library.
- Click the Site Assets library to view the workflow template as shown in the figure.
- navigate to the Site Assets library where the template is located.
- Select the workflow template you want to export by clicking it
- Click the Export File button to save the template file to your local computer
- It will save .wsp file on your system
Deploying a workflow package to SharePoint 2013 production environment
- Open Internet Explorer and navigate to the SharePoint Server 2013 site collection where you want to deploy the workflow
- Click Site Actions and select Site Settings.
- In the Web Design Galleries section click Solutions.
- Click the Upload Solution button. Upload that .wsp file
- Activate the solution by clicking the Activate button
After a workflow solution has been activated for a site collection, it is available as a feature for all sub-sites. To activate the workflow feature for a sub-site, follow this procedure.
- Open Site Settings on the site where you wish to activate the workflow feature.
- In the Site Actions group, click Manage site features.
- Click Activate next to the workflow feature as shown in the figure.
Note: Make sure that before activating feature List is present with same name
To deploy Updated Web part on production environment
You can create solution which include web part.
Under web part Elements.XML file you can include ReplaceContent="True".
so it will Update web part on production server