Beer is a kind of khamr (alcohol), and the lottery is a form of gambling, both of which Allaah has forbidden, as He says (interpretation of the meaning):
“O you who believe! Intoxicants (all kinds of alcoholic drinks), and gambling, and Al‑Ansaab (stone altars for sacrifices to idols etc), and Al‑Azlaam (arrows for seeking luck or decision) are an abomination of Shaytaan’s (Satan’s) handiwork. So avoid (strictly all) that (abomination) in order that you may be successful”
The ruling on lotteries has been explained previously. See Question no. 6476
Based on this, it is not permissible to sell beer and lottery tickets, because this is a kind of cooperating in sin and transgression, and Allaah says (interpretation of the meaning):
“Help you one another in Al‑Birr and At‑Taqwa (virtue, righteousness and piety); but do not help one another in sin and transgression”
So you have to give up this work immediately. The believer should realize that whoever gives up something for the sake of Allaah, Allaah will compensate him with something better than that. If a person puts his trust in his Lord, He will grant him the means of provision, as Allaah says (interpretation of the meaning):
“And whosoever fears Allaah and keeps his duty to Him, He will make a way for him to get out (from every difficulty).
And He will provide him from (sources) he never could imagine. And whosoever puts his trust in Allaah, then He will suffice him. Verily, Allaah will accomplish his purpose. Indeed Allaah has set a measure for all things”
And Allaah knows best.