To add a publish button in the contextal menu as in the screenshot below it is very simple:
- Open the core database
- Go to the item /sitecore/content/Applications/Content Editor/Context Menues/Default and duplicate the item Insert for example
- Set the fields values to:
- Display Name: Publish Item
- Message: item:publish(id=$Target)