Skip to content

Commit cdfc5cf

Browse files
Update python-package.yml
1 parent 7f6b0ca commit cdfc5cf

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/python-package.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,23 @@ jobs:
4444
python -m pip install coveralls==2.2
4545
coveralls --service=github
4646
env:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
49+
- name: Build Pypi Files
50+
run: |
51+
pip install --upgrade setuptools
52+
pip install wheel
53+
pip install twine
54+
git config --global user.name "${{secrets.GIT_USER}}"
55+
git config --global user.email "${{secrets.GIT_GMAIL}}"
56+
rm -rf build dist gunfolds.egg-info
57+
git stash
58+
git fetch --all
59+
git checkout version
60+
bash version_update.sh
61+
python3 setup.py sdist bdist_wheel
62+
63+
- name: Publish to Pypi
64+
uses: pypa/gh-action-pypi-publish@release/v1
65+
with:
66+
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)