Add publish macro