Doing any of those things could immediately cause you to lose valuable foreign patent rights. In the United States, applicants have a one-year grace period to file patent applications after publication, public use or offer for sale.  This is not true in all jurisdictions, so we recommend filing the patent before publishing or offering for sale the invention.