mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-17 12:39:54 +08:00
45 lines
1.1 KiB
YAML
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
|