You may apply for a US patent within the first year after the invention was made publicly known (e.g., published). If you intend to file foreign patents, the invention must not be made publicly known before filing abroad. You have one year from the date of filing your US patent to file your foreign application(s). So public disclosure prior to filing will only stop foreign applications.