core: Add CI step for sealing the version and producing a version-sealed source archive.
This commit is contained in:
parent
5c6de440e1
commit
2e09ca3772
|
@ -308,6 +308,25 @@ jobs:
|
|||
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:
|
||||
BUILD_ID: ${{ github.run_number }}
|
||||
|
|
Loading…
Reference in New Issue