publish: added save feature

generated from commit 06a9022b2af1cf0b385c1d0c11f5454078224443