Create an artifact configuration for your application. (For Heroku or OpenShift, this may be unnecessary. You can deploy your source code to the cloud, and the cloud platform will do the rest of the work for you. For CloudBees and Cloud Foundry, IntelliJ IDEA can create the necessary configurations automatically.)

Build the artifact. You can do that separately (Build | Build Artifacts), or when executing the corresponding run configuration. (In the case of deploying code to Heroku or OpenShift, an artifact is unnecessary.)

Create a cloud run configuration for deploying your artifact or code to the cloud. (IntelliJ IDEA can create such a run configuration automatically.)

Execute the run configuration to deploy your artifact or code to the cloud.

Cloud integration plugins

There is a separate cloud integration plugin for each of the supported cloud platforms. All the cloud integration plugins are bundled with the IDE and enabled by default.

The plugin names, normally, include the cloud name and the word integration, e.g. Heroku integration.