Skip to content

Partly automate release process #3716

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
May 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,71 @@ jobs:
- store_artifacts:
path: packages/python/plotly/dist

full_build:
docker:
- image: continuumio/miniconda3
environment:
LANG: en_US.UTF-8
resource_class: large

steps:
- checkout

- run:
name: Create conda environment
command: |
conda create -n env --yes python=3.9 conda-build conda-verify
conda install -n env -c conda-forge jupyterlab
conda install -c conda-forge nodejs=12
conda init bash

- run:
name: initial NPM Build
command: |
eval "$(conda shell.bash hook)"
conda activate env
cd packages/javascript/jupyterlab-plotly
npm install
npm run build:prod

- run:
name: PyPI Build
command: |
eval "$(conda shell.bash hook)"
conda activate env
cd packages/python/plotly
python setup.py sdist bdist_wheel

- store_artifacts:
path: packages/python/plotly/dist
destination: dist

- run:
name: Conda Build
command: |
eval "$(conda shell.bash hook)"
conda activate env
cd packages/python/plotly
conda build recipe/
mkdir conda_dist
mv /opt/conda/envs/env/conda-bld/noarch/plotly*.tar.bz2 conda_dist

- store_artifacts:
path: packages/python/plotly/conda_dist
destination: conda_dist

- run:
name: NPM Pack
command: |
cd packages/javascript/jupyterlab-plotly
npm pack
mkdir npm_dist
mv jupyterlab-plotly*.tgz npm_dist

- store_artifacts:
path: packages/javascript/jupyterlab-plotly/npm_dist
destination: npm_dist

build-doc:
resource_class: xlarge
docker:
Expand Down Expand Up @@ -384,6 +449,9 @@ workflows:
dev_build:
jobs:
- plotlyjs_dev_build
release_build:
jobs:
- full_build

build:
jobs:
Expand Down