Using Rules link to Un/Publish content Have anybody tried this?

Currently I am using Publish Content Module to Un/Publish contents, but the module doesn't support Confirmation action, if somebody hits Publish/Unpublish it just does the action straight away without asking confirmation. 

I have been looking for the solution and Rules Link modules advertises it as its promo feature. Being a newbie I am not much aware of Rules power, so, any hint how could I Publish/Unpublish content with this would be very helpful. 

So, far I tried by creating new Link which displays in my content type, When I click the link it asks for confirmation, but I couldn't figure out how to exactly Publish/Unpublish the content after that.
I solved a similar problem with the Flag and Rules modules. I created a flag called 'Published' for nodes and two rules that are activated when content is flagged/unflagged with this flag. These are my settings:

'Published' flag


Bundles: Article
Display in entity links: Display link as field
Link type: JavaScript toggle


If you need the flag for (an)other content type(s) too, you simply have to check the box in the flag settings.

'Published node' rule


Event: A node has been flagged, under 'Published'
Action: Publish content: Parameter: Content: [flagged-node]


'Unpublished node' rule


Event: A node has been unflagged, under 'Published'
Action: Unpublish content: Parameter: Content: [flagged-node]


If you want to, you can add some extra actions to the rule (e.g. display a message).