Skip to content

Commit a9fba52

Browse files
committed
update PyPi publish workflow
1 parent de3271b commit a9fba52

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.github/workflows/publish-on-pypi.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,20 @@ jobs:
2323
run: |
2424
python -m pip install --upgrade pip
2525
pip install -U setuptools
26-
pip install -U invoke
2726
pip install -U jupyter-packaging
28-
pip install -U jupyterlab
27+
pip install -U jupyterlab~=3.1
2928
3029
- name: Install the node
3130
uses: actions/setup-node@v2
3231
with:
33-
node-version: '14'
32+
node-version: '15'
3433
- run: npm install
3534

36-
- name: Update version
37-
run: invoke update-version --version="${GITHUB_REF#refs/tags/}"
38-
3935
- name: Create new tag
4036
run: |
4137
git config --local user.email "dev@materialscloud.org"
4238
git config --local user.name "Materials Cloud Team"
4339
44-
git commit -m "Release ${GITHUB_REF#refs/tags/}" -a
45-
4640
TAG_MSG=.github/static/release_tag_msg.txt
4741
sed -i "s|TAG_NAME|${GITHUB_REF#refs/tags/}|g" "${TAG_MSG}"
4842
@@ -57,7 +51,10 @@ jobs:
5751
branch: develop
5852

5953
- name: Build source distribution
60-
run: python ./setup.py sdist bdist_wheel
54+
run: |
55+
jlpm
56+
jlpm run build
57+
python ./setup.py sdist bdist_wheel
6158
6259
- name: Publish package to PyPI
6360
uses: pypa/gh-action-pypi-publish@master

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab-mol-visualizer",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"description": "A JupyterLab launcher extension to view the molecular orbitals.",
55
"keywords": [
66
"jupyter",

0 commit comments

Comments
 (0)