Skip to content

Commit 6001808

Browse files
committed
Fix GitHub Actions workflow for web builds
This commit updates the GitHub Actions workflow for building and deploying the WasmJS web application. It introduces the following changes: - Adds `id`s to the "Build WasmJS App" and "WasmJS App Distribution" steps for better referencing. - Sets `continue-on-error: true` for both build and distribution steps, allowing the workflow to proceed even if one of these steps fails. - Modifies the "Setup Pages" and "Upload artifact" steps to only run if either the build or the distribution step (or both) are successful. This prevents deployment of a broken or incomplete build.
1 parent e5702aa commit 6001808

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/web.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,18 @@ jobs:
3636
cache-read-only: false
3737
cache-overwrite-existing: true
3838
- name: "Build WasmJS App"
39+
id: build
3940
continue-on-error: true
4041
run: gradle app:web:build
4142
- name: "WasmJS App Distribution"
43+
id: dist
44+
continue-on-error: true
4245
run: gradle app:web:wasmJsBrowserDistribution
4346
- name: Setup Pages
47+
if: ${{ steps.build.outcome != 'failure' || steps.dist.outcome != 'failure' }}
4448
uses: actions/configure-pages@v5
4549
- name: Upload artifact
50+
if: ${{ steps.build.outcome != 'failure' || steps.dist.outcome != 'failure' }}
4651
uses: actions/upload-pages-artifact@v3
4752
with:
4853
path: ./app/web/build/dist/wasmJs/productionExecutable

0 commit comments

Comments
 (0)