1) go to intellij - file - settings - plugins - browse repositories- search for (Google cloud tools)
2) Restart your intellij
3) Go to edit congigurations beside run button
4) Now click + button and add google app engine deployment
5) add the server to google app engine
6) server to "JAR" or "WAR" file
7) Deploy archive - point to the war file which is there in your target folder which has to be deployed or somewhere else.
8) access your cloud account and select to which project you are going to deploy.
9) go to file - project structure and create a flexible module and point it to app.yaml file.
10) now you are set for the deployment of your app from local code editor.
11) open application servers below and press deploy server
12) finally after deployment success you will get a link with a sha key at the start.
13) go to google cloud console - appengine - versions and divert the audience from old deployment to new deployment.