Amegma / Galaxy-Attack

An inspiration of the original Atari Space Invaders game built in pygame :space_invader: :video_game:
MIT License
40 stars 20 forks source link

Adding github actions to automate releases #68

Open nkitsaini opened 1 year ago

nkitsaini commented 1 year ago

The action will trigger whenever a stable or pre-release release is published. It'll build the EXE for that specific release and add it to the release artifacts.

The action will not run when draft is created. It's a limitation from github right now: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release

Mayank0255 commented 1 year ago

@nkitsaini I think the trigger can be something else, so that it eliminates the manual effort of pushing the release.

My automating releases I dont mean that the release itself gets triggered on its own, I mean that whenever I make a release, it builds the updated exe file and embeds it into the release itself

nkitsaini commented 1 year ago

@Mayank0255 I see. let me make the changes.

nkitsaini commented 1 year ago

@Mayank0255 I've made the changes. See Pull request description detail.

Mayank0255 commented 1 year ago

@nkitsaini have you tested if its working or not?

nkitsaini commented 1 year ago

@Mayank0255 Yes, it is working. I've invited you to my fork. You can create manual releases and the .exe file will be attached to release artifacts once the github action is executed.

Mayank0255 commented 1 year ago

@Mayank0255 Yes, it is working. I've invited you to my fork. You can create manual releases and the .exe file will be attached to release artifacts once the github action is executed.

Ya, I saw that, but the game is crashing on launch itself, pls check that image

nkitsaini commented 1 year ago

@Mayank0255 Interesting, Which version of python are you using?

Mayank0255 commented 1 year ago

@nkitsaini I am using 3.10.1

nkitsaini commented 1 year ago

@Mayank0255 Can you try the newer build from here: https://github.com/nkitsaini/Galaxy-Attack/releases/tag/manual-11 ? I do not have windows available at the moment. If this does not work, I'll take a look later this week.

Mayank0255 commented 1 year ago

@Mayank0255 Can you try the newer build from here: https://github.com/nkitsaini/Galaxy-Attack/releases/tag/manual-11 ? I do not have windows available at the moment. If this does not work, I'll take a look later this week.

Getting a different error

Traceback (most recent call last):
  File "main.py", line 7, in <module>
ModuleNotFoundError: No module named 'screens.controls'