core: Add CI step for sealing the version and producing a version-sealed source archive.

This commit is contained in:
David Wendt 2023-01-20 19:28:35 -05:00 committed by Nathan Adams
parent 5c6de440e1
commit 2e09ca3772
1 changed files with 19 additions and 0 deletions

View File

@ -307,6 +307,25 @@ jobs:
- name: Install binaryen
shell: bash -l {0}
run: conda install -c conda-forge binaryen
- name: Produce reproducible source archive
if: ${{ !matrix.demo }}
shell: bash -l {0}
working-directory: web
env:
ENABLE_VERSION_SEAL: "true"
run: node packages/core/tools/set_version.js && zip -r ../reproducible-source.zip .
- name: Upload reproducible source archive
if: ${{ !matrix.demo }}
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-nightly-release.outputs.upload_url }}
asset_path: ./reproducible-source.zip
asset_name: ${{ needs.create-nightly-release.outputs.package_prefix }}-reproducible-source.zip
asset_content_type: application/zip
- name: Build web
env: