Implement publish method

Signed-off-by: rpgmaker <olamide.bakre@gmail.com>