From 6b3f00556defbc76595d5ff9700ebea4c91bd700 Mon Sep 17 00:00:00 2001 From: Shahzad Afridi Date: Thu, 29 Aug 2024 20:54:13 +0500 Subject: [PATCH] Fixed web-app artifacts --- .github/workflows/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b0b3937..e5eb188 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -159,13 +159,19 @@ jobs: ${{ runner.os }}-gradle- - name: Build Web - run: ./gradlew wasmJsBrowserWebpack + run: ./gradlew wasmJsBrowserDistribution + + - name: Archive Web App + run: | + # Create a zip file of the productionExecutable directory + mkdir -p artifacts + zip -r artifacts/web-app.zip composeApp/build/dist/wasmJs/productionExecutable - name: Upload Web artifacts uses: actions/upload-artifact@v4 with: name: web-app - path: webApp/build/distributions/*.tar.gz + path: artifacts/web-app.zip # Workflow block for generating artifact links generate-artifact-links: