Skip to content

Commit

Permalink
Merge pull request #19: CI: Added building distro packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-kow authored Feb 18, 2024
2 parents 0e6b2cf + 0c9bc0e commit 1cb328e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,26 @@ jobs:
run: |
pytest
deploy:
needs: build
runs-on: ubuntu-22.04
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: build distribution packages
run: python setup.py sdist bdist_wheel
- name: Build and publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && matrix.python-version == '3.12'
uses: pypa/[email protected]
with:
user: domain-connect
password: ${{ secrets.PYPI_PASSWORD }}
skip_existing: true

0 comments on commit 1cb328e

Please sign in to comment.