Skip to content

Commit 0b96a44

Browse files
authored
Merge pull request #730 from jupyter-incubator/devstein/use-release-action
Use PyPI Publish GH Action
2 parents fd6c825 + ee6b6a5 commit 0b96a44

File tree

2 files changed

+38
-18
lines changed

2 files changed

+38
-18
lines changed

.github/workflows/publish.yml

+38-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,44 @@ jobs:
4343
4444
EOF
4545
46-
- name: Upgrade dependencies
46+
- name: Build hdijupyterutils dist
4747
run: |
48-
pip install -U pip setuptools twine
49-
- name: Release
48+
cd hdijupyterutils
49+
python setup.py sdist
50+
cd ..
51+
52+
- name: Publish hdijupyterutils to PyPI
53+
uses: pypa/gh-action-pypi-publish@release/v1
54+
with:
55+
user: __token__
56+
password: ${{ secrets.PYPI_TOKEN_HDIJUPYTERUTILS }}
57+
packages_dir: hdijupyterutils/dist/
58+
verbose: true
59+
60+
- name: Build autovizwidget dist
61+
run: |
62+
cd autovizwidget
63+
python setup.py sdist
64+
cd ..
65+
66+
- name: Publish autovizwidget to PyPI
67+
uses: pypa/gh-action-pypi-publish@release/v1
68+
with:
69+
user: __token__
70+
password: ${{ secrets.PYPI_TOKEN_AUTOVIZWIDGET }}
71+
packages_dir: autovizwidget/dist/
72+
verbose: true
73+
74+
- name: Build sparkmagic dist
5075
run: |
76+
cd sparkmagic
77+
python setup.py sdist
78+
cd ..
5179
52-
/bin/sh deploy.sh
80+
- name: Publish sparkmagic to PyPI
81+
uses: pypa/gh-action-pypi-publish@release/v1
82+
with:
83+
user: __token__
84+
password: ${{ secrets.PYPI_TOKEN_SPARKMAGIC }}
85+
packages_dir: sparkmagic/dist/
86+
verbose: true

deploy.sh

-14
This file was deleted.

0 commit comments

Comments
 (0)