I am trying to find the proper task to run in a Gi...
# webassembly
f
I am trying to find the proper task to run in a Github Actions step for testing, building and releasing an app (and at best deploying the wasm webapp in GCE eg). Is there documentation for the gradle tasks available for a compose app? There's a sheer number of available tasks and some throw exceptions when executed (like
check
)
a
I only have an example of publishing a compose app to GitHub Pages, but I feel that it also could be helpful for your case (you need to replace the last action of deploying to GitHub Pages with a task that deploys the app into GCE): https://github.com/Kotlin/kotlin-wasm-compose-template/blob/main/.github/workflows/ci.yml
f
great, thanks @Artem Kobzar!
a
No problems. The only thing I would like to ask you is, as soon as you have a work version of such an action, please share it as a gist here. I really want to extend the template I shared with multiple options for deploying to different services.
f
I’ll do
🙏 1
short update: I have used @Artem Kobzar’s example action to create a Docker image using the Dockerfile:
Copy code
FROM nginx
COPY ./composeApp/build/dist/wasmJs/productionExecutable /usr/share/nginx/html
then push the resulting image to GCE followed by regular deployment using it
🙌 1