Skip to content

Commit 43c331c

Browse files
ci: Release dual-wasm extensions as assets
1 parent 7b91cc6 commit 43c331c

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/release_nightly.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ jobs:
469469
run: npm run sign-firefox
470470

471471
build-web-demo-and-selfhosted:
472-
name: Build web demo and selfhosted package with docs
472+
name: Build web demo and selfhosted package with docs, and release assets for dual-wasm extensions
473473
needs: create-nightly-release
474474
if: needs.create-nightly-release.outputs.is_active == 'true'
475475
runs-on: ubuntu-24.04
@@ -541,6 +541,27 @@ jobs:
541541
shell: bash -l {0}
542542
run: npm run build:dual-wasm-repro
543543

544+
# NOTE: This is done here because the job that builds the extensions for publication doesn't have the vanilla (MVP) WASM modules, but for the selfhosted package we build them both
545+
- name: Upload dual-wasm generic extension
546+
run: |
547+
tag_name="${{ needs.create-nightly-release.outputs.tag_name }}"
548+
package_file="${{ needs.create-nightly-release.outputs.package_prefix }}-web-extension-dual-wasm.zip"
549+
cp "./web/packages/extension/dist/ruffle_extension.zip" "$package_file"
550+
gh release upload "$tag_name" "$package_file"
551+
rm "$package_file"
552+
env:
553+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
554+
555+
- name: Upload dual-wasm Firefox extension (unsigned)
556+
run: |
557+
tag_name="${{ needs.create-nightly-release.outputs.tag_name }}"
558+
package_file="${{ needs.create-nightly-release.outputs.package_prefix }}-web-extension-firefox-dual-wasm-unsigned.xpi"
559+
cp "./web/packages/extension/dist/firefox_unsigned.xpi" "$package_file"
560+
gh release upload "$tag_name" "$package_file"
561+
rm "$package_file"
562+
env:
563+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
564+
544565
- name: Build web docs
545566
working-directory: web
546567
run: npm run docs

0 commit comments

Comments
 (0)