Skip to content

Commit 66f6b7e

Browse files
committed
adding python pypi publish script
1 parent e63b804 commit 66f6b7e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish Python extract sdk distribution to PyPI
2+
3+
on: push
4+
5+
jobs:
6+
build-n-publish:
7+
name: Build and publish Python distributions to PyPI
8+
runs-on: ubuntu-18.04
9+
steps:
10+
- uses: actions/checkout@master
11+
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.8
16+
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install setuptools wheel twine
21+
pip install -r requirements.txt
22+
23+
- name: Build a binary wheel and a source tarball
24+
run: |
25+
pip install wheel
26+
python setup.py sdist bdist_wheel
27+
28+
- name: Publish distribution to PyPI
29+
if: startsWith(github.ref, 'refs/tags')
30+
uses: pypa/gh-action-pypi-publish@master
31+
with:
32+
password: ${{ secrets.ADOBE_BOT_PYPI_TOKEN}}

0 commit comments

Comments
 (0)