1. Ctrl + Alt + Shift + S
2. Go Down To Artifacts
3. Click On The + Add Jar Empty & Then On the right side your source folder will be shown double click on that to add it to the artifact
4. press Apply And OK
5. On the menu bar press build then build artifacts and then build again it will be built in A destination similar to what is shown in the screenshot below
6. that .jar file is what you upload