# Run Aseprite as part of a Github Action

**URL:** <https://community.aseprite.org/t/run-aseprite-as-part-of-a-github-action/9949>\
**Category:** Development\
**Created:** [July 14, 2021, 3:15am UTC](https://community.aseprite.org/t/run-aseprite-as-part-of-a-github-action/9949 "2021-07-14T03:15:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![drhayes](https://community.aseprite.org/user_avatar/community.aseprite.org/drhayes/32/214_2.png) [@drhayes](https://community.aseprite.org/u/drhayes)\
**Post date:** [July 14, 2021, 3:15am UTC](https://community.aseprite.org/t/run-aseprite-as-part-of-a-github-action/9949/1 "2021-07-14T03:15:32Z")

</div>

I’m wondering if anyone else has used Aseprite in a Github Action as part of a continuous integration step for building their game. It sure would be cool if I could get a full CI build of my game from scratch if someone touched a file.

I’m working with a non-technical partner (my son) who’d like to do the art for the game we’re making. I have this idea that he can change the art, push a button on his side that pulls the file from somewhere (Dropbox?) and checks it into the right place in the game repo. That sets off the Github Action which builds the game and updates it on [itch.io](http://itch.io) and… voila!

In order to get that to work I think I need the aseprite CLI inside the Github Action runner. I could then run `make` on my game to generate the frames from the aseprite assets for sprite packing. I’ve got this working locally, but I also have a paid-for version of Aseprite installed (as does my son) and in my path. This thing would either download a pre-built aseprite binary, compile it in place, or run inside of a Docker container with aseprite in the path already.

I’ve thought about scripting this up locally, but it would be _much_ handier if he could produce a new build by changing the art himself without me being involved.

Am I going to end up compiling aseprite into a Docker image to get this working? Anyone else have any ideas?

EDIT: Just found this thing that I think I could use! [setup-aseprite-cli-action · Actions · GitHub Marketplace · GitHub](https://github.com/marketplace/actions/setup-aseprite-cli-action)

---

<div class="post-metadata">

**Author:** ![rgbkrk](https://community.aseprite.org/user_avatar/community.aseprite.org/rgbkrk/32/18000_2.png) [@rgbkrk](https://community.aseprite.org/u/rgbkrk)\
**Post date:** [February 19, 2024, 11:56pm UTC](https://community.aseprite.org/t/run-aseprite-as-part-of-a-github-action/9949/2 "2024-02-19T23:56:26Z")

</div>

Glad you added that edit at the end. How did this process work out for you?

---

<div class="post-metadata">

**Author:** ![drhayes](https://community.aseprite.org/user_avatar/community.aseprite.org/drhayes/32/214_2.png) [@drhayes](https://community.aseprite.org/u/drhayes)\
**Post date:** [February 20, 2024, 3:24pm UTC](https://community.aseprite.org/t/run-aseprite-as-part-of-a-github-action/9949/3 "2024-02-20T15:24:16Z")

</div>

Well, my non-technical partner bailed on me to play more video games so we never got it up and running in its full glory. I still have that GitHub action in my back pocket in case I need it in the future, though.

The plan was to have him update an `.ase` file and have it export, build, and publish the game. If I were doing this today I’d make it so the `.ase` merge checks the generated image files back into the repo first, then calls the normal publish workflow.

But this is all theoretical.
