Skip to content

Commit

Permalink
Now released package versions are uploaded into PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoveda committed Jul 24, 2020
1 parent 11ec29b commit 5ccfb8d
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/pythonrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Create Release
if: startsWith( github.ref, 'refs/tags/releases/')
id: create_release
Expand All @@ -30,4 +34,13 @@ jobs:
release_name: ${{ github.ref }}
body: ${{ github.event.commits[0].message }}
draft: false
prerelease: false
prerelease: false
- name: Build Python Package
run: |
python setup.py sdist bdist_wheel
- name: Publish Package to PyPI
if: startsWith( github.ref, 'refs/tags/releases/')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}

0 comments on commit 5ccfb8d

Please sign in to comment.