Skip to content

Commit

Permalink
update PyPi publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dou-du committed Aug 24, 2021
1 parent de3271b commit a9fba52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/publish-on-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,20 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -U setuptools
pip install -U invoke
pip install -U jupyter-packaging
pip install -U jupyterlab
pip install -U jupyterlab~=3.1
- name: Install the node
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '15'
- run: npm install

- name: Update version
run: invoke update-version --version="${GITHUB_REF#refs/tags/}"

- name: Create new tag
run: |
git config --local user.email "[email protected]"
git config --local user.name "Materials Cloud Team"
git commit -m "Release ${GITHUB_REF#refs/tags/}" -a
TAG_MSG=.github/static/release_tag_msg.txt
sed -i "s|TAG_NAME|${GITHUB_REF#refs/tags/}|g" "${TAG_MSG}"
Expand All @@ -57,7 +51,10 @@ jobs:
branch: develop

- name: Build source distribution
run: python ./setup.py sdist bdist_wheel
run: |
jlpm
jlpm run build
python ./setup.py sdist bdist_wheel
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jupyterlab-mol-visualizer",
"version": "0.0.1",
"version": "0.1.0",
"description": "A JupyterLab launcher extension to view the molecular orbitals.",
"keywords": [
"jupyter",
Expand Down

0 comments on commit a9fba52

Please sign in to comment.