notebook/.github/actions/build-dist/action.yml
Jeremy Tuloup a867bb44ee
Pin ypy-websocket to 0.2 (#6499)
* Pin `ypy-websocket` to `0.2`

* More pinning

* Pin in build deps
2022-08-02 15:39:31 +02:00

45 lines
1.1 KiB
YAML

name: "Build Jupyter Notebook"
description: "Build Jupyter Notebook from source"
runs:
using: "composite"
steps:
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade jupyter_packaging~=0.10 "jupyterlab>=4.0.0a25,<5" ypy-websocket==0.2 build
- name: Build pypi distributions
shell: bash
run: |
python -m build
- name: Build npm distributions
shell: bash
run: |
mkdir pkgs
jlpm lerna exec -- npm pack
cp packages/*/*.tgz pkgs
- name: Build checksum file
shell: bash
run: |
cd dist
sha256sum * | tee SHA256SUMS
cd ../pkgs
sha256sum * | tee SHA256SUMS
- name: Upload distributions
uses: actions/upload-artifact@v2
with:
name: notebook-dist-${{ github.run_number }}
path: ./dist
- name: Upload distributions
uses: actions/upload-artifact@v2
with:
name: notebook-pkgs-${{ github.run_number }}
path: ./pkgs