"publishing to IPFS" doesn't make sense in the context of Netlify. Where is the content hosted once the build has been finished? You still need to send the content somewhere once the build is finished, otherwise it won't be available for others to fetch.