Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .github/actions/publish-browser-gallery/action.yml

This file was deleted.

13 changes: 10 additions & 3 deletions .github/workflows/_build-gallery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Build Gallery (Reusable)

# Internal reusable workflow - called by release.yml and release-gallery.yml
# Not meant to be triggered directly
# The Browser job runs the local action .github/actions/publish-browser-gallery from the checked-out ref, so a branch
# released from must contain it (main and alpha only after the 4.0.0 changes are merged into them).

on:
workflow_call:
Expand Down Expand Up @@ -172,8 +170,17 @@ jobs:
with:
global-json-file: global.json

# WasmBuildNative links the SkiaSharp and HarfBuzz native libraries into dotnet.native.wasm.
- name: Install WebAssembly build tools
run: dotnet workload install wasm-tools

- name: Publish Browser Gallery
uses: ./.github/actions/publish-browser-gallery
run: |
dotnet publish Flowery.NET.Gallery.Browser/Flowery.NET.Gallery.Browser.csproj \
-c Release \
-o ./browser-publish
test -f ./browser-publish/wwwroot/index.html && test -d ./browser-publish/wwwroot/_framework \
|| { echo "::error::The published wwwroot has no index.html or _framework folder."; exit 1; }

- name: Zip Browser artifact
shell: bash
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,17 @@ jobs:
with:
global-json-file: global.json

# WasmBuildNative links the SkiaSharp and HarfBuzz native libraries into dotnet.native.wasm.
- name: Install WebAssembly build tools
run: dotnet workload install wasm-tools

- name: Publish Browser Gallery
uses: ./.github/actions/publish-browser-gallery
run: |
dotnet publish Flowery.NET.Gallery.Browser/Flowery.NET.Gallery.Browser.csproj \
-c Release \
-o ./browser-publish
test -f ./browser-publish/wwwroot/index.html && test -d ./browser-publish/wwwroot/_framework \
|| { echo "::error::The published wwwroot has no index.html or _framework folder."; exit 1; }

# Playwright and its dependencies come with pinned versions and hashes.
- name: Install Playwright and headless Chromium
Expand Down
Loading